Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some videos from some channels are missing #8

Open
WeaselScience opened this issue Feb 13, 2016 · 1 comment
Open

Some videos from some channels are missing #8

WeaselScience opened this issue Feb 13, 2016 · 1 comment

Comments

@WeaselScience
Copy link

I really needed a script like this for my project, so I decided to thoroughly test this one before actually committing to using it. I've opened my subscriptions box on youtube and compared all videos in there with the list produced by this script. What was strange is that one or two videos were always missing from the list. I've investigated further, and it seems like the playlistItems call lists videos from newest to oldest, but by the date of their upload, NOT the date of publishing. So, if a channel uploads a video, say, a month earlier than they publish it, and in the meantime publishes 5 or more videos, the aforementioned video will appear in the playlistItems list in a position that is higher than 5, leading to it not being included in the final output of this script.

My solution was to increase the limit in get_playlist_items function. Although still not 100% failproof and much more resource-hungry, further testing revealed no more skipped videos.

I am posting this not as an issue, but as information to whomever will be investigating this issue in the future.

@WeaselScience WeaselScience changed the title Some videos from some channels Some videos from some channels are missing Feb 13, 2016
@ali1234
Copy link
Owner

ali1234 commented Feb 13, 2016

Yes, I've noticed this problem too. There's no way to work around it other
than to set the number of fetched videos excessively high, which will
increase your API usage.

On 13 February 2016 at 12:41, Algirdas [email protected] wrote:

I really needed a script like this for my project, so I decided to
thoroughly test this one before actually committing to using it. I've
opened my subscriptions box on youtube and compared all videos in there
with the list produced by this script. What was strange is that one or two
videos were always missing from the list. I've investigated further, and it
seems like the playlistItems call lists videos from newest to oldest, but
by the date of their upload, NOT the date of publishing. So, if a channel
uploads a video, say, a month earlier than they publish it, and in the
meantime publishes 5 or more videos, the aforementioned video will appear
in the playlistItems list in a position that is higher than 5, leading to
it not being included in the final output of this script.

My solution was to increase the limit in get_playlist_items function.
Although still not 100% failproof, further testing revealed no more skipped
videos.

I am posting this not as an issue, but as information to whomever will be
investigating this issue in the future.


Reply to this email directly or view it on GitHub
#8.

Alistair Buxton
[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants