dunkyl / SlyYTDAPI-Python

No-boilerplate, async YouTube Data API access. 😋
MIT License
3 stars 1 forks source link

Unknown duration format #8

Closed betterthanever2 closed 3 weeks ago

betterthanever2 commented 1 month ago

When updating my db, I'm getting a number of exceptions related to duration, for example Error fetching updates from channel UCVPYbobPRzz0SjinWekjUBw: Unknown duration format: PT21M. Here are formats that were deemed 'uknown':

dunkyl commented 1 month ago

Ah, TIL that the seconds field is sometimes omitted. A fix for this will be included in the next version.

betterthanever2 commented 1 month ago

@dunkyl I'm getting one more bad format after the update: P0D. Not even sure what this is supposed to be, yet I'm getting it.

dunkyl commented 1 month ago

Can you share the video?

betterthanever2 commented 1 month ago

Most likely, it was this video: https://www.youtube.com/watch?v=a4jIQsmRjY8 In case you can read russian, I apologize for ru propaganda, it's just the subject of my research.

dunkyl commented 1 month ago

No problem, understandable. It is interesting, and this also made me realize I never handled hidden counts!

dunkyl commented 1 month ago

A new version is up. I will leave the issue open for a bit, since I don't have a complete understanding of when or why videos might have durations like this.

betterthanever2 commented 1 month ago

A new version is up. I will leave the issue open for a bit, since I don't have a complete understanding of when or why videos might have durations like this.

Yeah, it is weird. Possibly, a scheduled stream?

dunkyl commented 3 weeks ago

Indeed after some testing, scheduled streams and streams that have been up for only moments do this, which makes sense.