Need 11 character video id or the URL of the video. Got None.
See original GitHub issueHello, 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:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
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…