@ThrLuQ9 wrote:
HALP!
I am kinda stuck and after hours of fiddling around I guess I have to admit defeat.
I am trying to set up a task that grabs videos from a youtube channel via the rss plugin by handing the feed results over to youtube-dl, but I don't understand how to handle any of the non standard tags the rss feed delivers.
Grabbing the rss feed via
curl https://www.youtube.com/feeds/videos.xml?channel_id=$channelid
shows that the urls to the videos can be found in these tags<id>yt:video:$videoid</id> <link rel="alternate" href="https://www.youtube.com/watch?v=$videoid"/> <yt:videoId>$videoid</yt:videoId> <media:content url="https://www.youtube.com/v/$videoid?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
Using the
link
tag would be the obvious choice, but that did not get me any results (because it's not a standard<link>
tag?).Using
link: 'yt:videoId'
could work, because the $videoid is enough input for youtube-dl, but using that I end up with an`ERROR exec $taskname Could not set exec command for $title: (UndefinedError) 'link' is undefined`
Using the
media:content
tag gives me this`CRITICAL plugin Tried to set None url to [{'type': 'application/x-shockwave-flash', 'height': '390', 'width': '640', 'url': 'https://www.youtube.com/v/$videoid?version=3'}]`
So, how do I get the video url from this array of key:value pairs and make it the link that can be passed to youtube-dl by exec?
I tried fiddling around with the manipulate plugin but could not figure that out, either : |
This is what I am stuck at right now:
tasks: YouTubeChannel: rss: url: https://www.youtube.com/feeds/videos.xml?channel_id=channelid all_entries: yes link: 'media:content' exec: allow_background: yes auto_escape: yes on_output: for_accepted: - youtube-dl --restrict-filenames -f mp4 -o "/download/" "{{link}}" &
Thanks for reading, I appreciate any input.
Bratzo
Posts: 3
Participants: 2