podsync icon indicating copy to clipboard operation
podsync copied to clipboard

error="update failed: failed to parse duration : bad format string"

Open fqx opened this issue 1 year ago • 6 comments

This error keeps showing in the log, in the last 24 hours. I will look into this and update this issue.

fqx avatar Jun 28 '24 01:06 fqx

I have a feeling that this bug occurs when the channel has upcoming live broadcast.

fqx avatar Jun 28 '24 02:06 fqx

It appears that YouTube changed the default value of video.ContentDetails.Duration for live broadcasts. I have created a quick fix pull for this. However, I don't really know go, so please look into it carefully. #639 For anyone need this fix urgently, you can get binary here https://github.com/fqx/podsync-with-yt-dlp/releases/tag/v2.7.1-b .

fqx avatar Jun 28 '24 03:06 fqx

It may cause apple podcast shows wrong duration, however the playback is ok. IMG_4657

fqx avatar Jun 29 '24 03:06 fqx

https://github.com/fqx/podsync-with-yt-dlp/releases/tag/v2.7.1-b updated

fqx avatar Jul 01 '24 09:07 fqx

EDIT: never mind. the below did not fix the problem.

fwiw I've run into the same issue, and noticed it was happening on premiere videos that have not yet aired. so i was able to filter them out and prevent the problem by adding

youtube_dl_args = [
    "--match-filters",
    "live_status!=is_upcoming",
]

to my config.

it might make sense to just add that as an always-on filter, since i can't think of any good scenario where you'd want to include an unaired premiere video in the podcast feed

thurstonsand avatar Jan 10 '25 23:01 thurstonsand

I've attempted to fix the problem as well. in my PR, it's more clear why we're continueing: #677

thurstonsand avatar Jan 11 '25 00:01 thurstonsand