mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.07k stars 645 forks source link

Try to parse the date strings using several formats. #1096

Closed eldipa closed 1 year ago

eldipa commented 4 years ago

Youtube seems that changed the format of the date times so this commit fixes that. In case of a regression (from Youtube), we try to parse the string using several formats and not just one.

Refactor the code so yt_datetime and yt_datetime_local use the same code.

See issue #1088

iamtalhaasghar commented 1 year ago

related to https://github.com/mps-youtube/yewtube/pull/1156