question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need 11 character video id or the URL of the video. Got None.

See original GitHub issue

Hello, i have got problem with playing from yt. Everytime when i tried to play m3u, mopidy shows message: INFO Need 11 character video id or the URL of the video. Got None.

mopidy --version
  Mopidy 0.19.5
mopidy deps
  Not found:
  none

Playlist file:

#EXTM3U
#EXTINF:-1, My song from YT
yt:http://www.youtube.com/watch?v=Njpw2PVb1c0

I’m able to play from youtube with this oneliner;

gst-launch-0.10 playbin2 uri=$(echo "http://www.youtube.com/watch?v=Njpw2PVb1c0" | python2 -c 'import pafy,sys;print(pafy.new("".join(sys.stdin)).getbestaudio().url)')

Thanks

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
urgemergecommented, Oct 5, 2017

Found a workaround having exactly the same issue here running Mopidy (2.1.0), Mopidy-Youtube (2.0.2) and pafy (0.5.3.1). Youtube URLs are playable by searching and playing them using the Mopidy-Moped (0.7.1) web interface. I found out, running mopidy -vvv, that the called URi is a bit different:

Sending track_playback_started to CoreListener: {'tl_track': TlTrack(tlid=90, track=Track(album=Album(images=[u'http://i.ytimg.com/vi/UBS4Gi1y_nc/hqdefault.jpg', u'http://i.ytimg.com/vi/UBS4Gi1y_nc/mqdefault.jpg'], name=u'YouTube'), comment=u'UBS4Gi1y_nc', length=633000, name=u'Aphex Twin - Windowlicker (official video) 1080p HD', uri='youtube:video/Aphex Twin - Windowlicker (official video) 1080p HD.UBS4Gi1y_nc'))}

As a workaround it works for me to simply put the URI to my .m3u playlist:

youtube:video/Aphex Twin - Windowlicker (official video) 1080p HD.UBS4Gi1y_nc

Some shorter notation is also possible:

yt:/.UBS4Gi1y_nc

Cheers!

0reactions
hamses33commented, Dec 18, 2015

I’ve got the same error. Thats the Output

INFO Need 11 character video id or the URL of the video. Got //com/playlist?list=PLeCg_YDclAETQHa8VyFUHKC_Ly0HUWUnq

WARNING Track is not playable: yt:http://www.youtube.com /playlist?list=PLeCg_YDclAETQHa8VyFUHKC_Ly0HUWUnq

I have tried almost every combination of Youtube Link and video info like yt:https://www.youtube.com/watch?v=rYEDA3JcQqw yt:https://www.youtube.com/rYEDA3JcQqw yt:rYEDA3JcQqw https://www.youtube.com/=rYEDA3JcQqw etc…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need 11 character video id or the URL of the video. Got None.
Hello, i have got problem with playing from yt. Everytime when i tried to play m3u, mopidy shows message: INFO Need 11 character...
Read more >
Is there a way to get YT url or video ID from playlist with pafy?
I am trying to make a program that takes YT playlist and play all it's content. I've installed all components needed for pafy...
Read more >
Pafy - Getting Video ID of the given Video - GeeksforGeeks
The Youtube video ID is used to create a unique URL to show the video and can be used to embed a Youtube...
Read more >
Format for ID of YouTube video
We don't make any public guarantees about the format for video ids. While they're currently 11 character strings that contain letters, numbers ...
Read more >
Python 3 Script to Get Video ID From Youtube Video URL in ...
Download the full source code of application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found