š¹:smugcat: on Nostr: I finally solved a strange problem with date metadata field in yt-dlp. When I ...
I finally solved a strange problem with date metadata field in yt-dlp. When I download tracks from Soundcloud, it gives me 3 audio codecs: mp3, opus and aac. I don't know why, but mp3 get YYYY date, and opus get YYYYMMDD date. I thought it might be because of mp3 ID3 format.
Anyway, I managed to figure out how to set formatted date:
--parse-metadata "%(upload_date>%Y-%m-%d)s:%(meta_date)s" --add-metadata
Published at
2024-10-28 13:13:16Event JSON
{
"id": "bd895fab102b92e95ee77ffdbdc206d6751363d58e7139fcadea4ccc59278461",
"pubkey": "0a991cb1e7cb0c0ffaa60fe6ffbfa42f4fe45d736ed5cfe2377c98d7e5241adb",
"created_at": 1730121196,
"kind": 1,
"tags": [
[
"proxy",
"https://suya.place/objects/c192635f-3944-4132-8b88-39a1557f78ca",
"activitypub"
]
],
"content": "I finally solved a strange problem with date metadata field in yt-dlp. When I download tracks from Soundcloud, it gives me 3 audio codecs: mp3, opus and aac. I don't know why, but mp3 get YYYY date, and opus get YYYYMMDD date. I thought it might be because of mp3 ID3 format.\nAnyway, I managed to figure out how to set formatted date:\n--parse-metadata \"%(upload_date\u003e%Y-%m-%d)s:%(meta_date)s\" --add-metadata",
"sig": "d183524db77551f2c8e04c006e3f301b148b277f0fee64aab681b27c02bb05c5b2823b35389d748802f316e7fb34e6024e4d8f9f236d6ae1e871d269af572636"
}