error="update failed: failed to parse duration : bad format string"
This error keeps showing in the log, in the last 24 hours. I will look into this and update this issue.
I have a feeling that this bug occurs when the channel has upcoming live broadcast.
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 .
It may cause apple podcast shows wrong duration, however the playback is ok.
https://github.com/fqx/podsync-with-yt-dlp/releases/tag/v2.7.1-b updated
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
I've attempted to fix the problem as well. in my PR, it's more clear why we're continueing: #677