Zend Gdata How to retrieve youtube playlist videos & exclude deleted and private from playlist
Tag : php , By : HokieGeek
Date : March 29 2020, 07:55 AM
wish help you to fix your issue you're looking to query based on the existence of yt:state, if the state tag exists then the file is restricted for some reason. You may also find some useful info at ZF gData and by looking at the code in Zend_Gdata_YouTube_Extension_State. You haven't included enough of your code for me to offer any more suggestions on how you might adapt you code. Good Luck! [EDIT] Best guess would be to add a videoQuery Either in place of or as part of getPlaylistFeed(): $query = new Zend_Gdata_YouTube_VideoQuery();
$query->setParam('state', 0);//you may need to query for all of your videos this way.
|
Youtube API: Adding videos to a playlist with the new 32 character playlist ID
Date : March 29 2020, 07:55 AM
|
Batch Delete Videos From YouTube Favorites Playlist
Date : March 29 2020, 07:55 AM
I hope this helps . I've got it to work, thanks to this question and answer: Batch deleting videos using YouTube API and HTTpWebRequesthttps://gdata.youtube.com/feeds/api/users/USERID/favorites/batch?v=2&alt=json
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:yt='http://gdata.youtube.com/schemas/2007'>
<batch:operation type="delete"/>
<entry>
<id>https://gdata.youtube.com/feeds/api/users/USERID/favorites/VIDEOID1?v=2</id>
</entry>
<entry>
<id>https://gdata.youtube.com/feeds/api/users/USERID/favorites/VIDEOID2?v=2</id>
</entry>
</feed>
|
youtube-dl: How to skip videos with unavailable fragments in playlist, but not to abort playlist downloading?
Date : March 29 2020, 07:55 AM
it helps some times I want to download a playlist of videos from youtube using youtube-dl for further offline viewing. Some videos have unavailable fragments (but for some reason there is no problem when viewing through browser). I want to download the playlist, but skip the videos with missing fragments. --abort-on-unavailable-fragment Abort downloading when some fragment is not
available
|
youtube-dl: download youtube videos info.json in a playlist by ignoring videos specified in archive.txt
Date : October 07 2020, 01:00 PM
hope this fix your issue yt-dl will add an entry into archive.txt only if the video is downloaded. So, i think your use case cannot be achived solely through yt-dl. Howerver this behaviour can be achived using some command line magic, youtube-dl --skip-download --write-info-json --download-archive archive.txt https://www.youtube.com/playlist\?list\=PLMCXHnjXnTnuFUfiWF4D0pYmJsMROz4sA |tee /dev/tty|grep "\[info] Writing video description metadata as JSON to:" |gawk '{ match($0, /-([a-zA-Z0-9_-]+)\.info\.json/, arr); if(arr[1] != "") print "youtube "arr[1] }' >> archive.txt
|