I'm trying to extract/find/tag the publication dates from a collection of 256 youtube videos. The relevant metadata field is embedded as "publishedAt", or possibly "snippet.publishedAt" or "datetime" (see: Videos | YouTube Data API | Google for Developers).
But the only relevant column I can bring up in mp3tag is Year, and this field is empty. How can I visualize this data in mp3tag, in order that it be copied into the year column and/ appended to the beginning of the filename?
See the extended tags dialogue Alt-T for supported and embedded fields in the files.
See if you find a field there that shows your requested data.
Or can you show us a link to such a YT video?
ALBUM, ARTIST, ENCODER and TITLE are all that come up.
Here is link to a youtube web source script
I don't know though whether that gets the information that you are looking for.
If not, then I would assume that you have copy the data manually
bad news. i have zero scripting knowledge, ability or experience. i can load games from a DOS prompt. that's about it. only speak GUI.
hopeless?
See the documentation on how to add a user-contributed wss:
if that is too hard, it is back to manual copy&paste.
Just to clarify, what youTube calls "metadata" are not stored in video file downloads, but rather in their database for the video. To see those, you must use their API.
So the embedded tags (if any) that you see in a youTube download are something else. Those tags were added (or not) by the file poster, or by whoever downloaded the file. And even the four tag names that you mentioned are not shown in the API reference, so I don't see how the youTube API could be helpful here.
As far as I understand, the OP is looking for
and the YT-API can deliver:
what would help for this request.
To use the API - for example with the mentioned WSS - you need to register your own API-Key with your own Google account first.
The YouTube-WSS includes some code for the "publishedAt" API metadata:
and fills content into the YEAR field.
You are right: This information is not embedded in the video itself. Only with access to the additional API you can query such additional metadata.
Oops, my mistake, I was looking at the wrong list.
@newmy51, Have you tried to find out what software was used to embed these tags? Perhaps you can contact the person or organization that created them. That software should enable you to retrieve the data and to then re-enter it into standard tags that Mp3tag could read. And (if you are lucky) that software may still be installed on someone's PC at your firm....
is there a GUI-style, noob-friendly way of scraping this data?
yes, that would be one workaround, but I think it'd be helpful for future tasks to be able to grab the publication date/time out of files where it's not written into the filename.
Using a WebSourcesScript IS "a GUI-style, noob-friendly way of scraping data."
All you have to do is to follow the procedure for WSS as mentioned here:
Installing Tag Sources
To install one of the web sources here, simply download the file and extract it into your web sources directory:
- Open the configuration folder via File → Open configuration folder
- Navigate to
data\sources- Extract the downloaded Tag Source file (.src)
Then you can call it from the main menu Tag Sources or with a right-click on your selected files and then Tag Sources.
In this specific case you have to obtain your own API-Key with your own Google account first and enter it once inside the WS script in the lines #6 and #7 at the yellow highlighted position:
You can not grab something out of files that is not embedded in your files.
As long as YouTube don't include this metadata value in the individual source video file, there is no other way than query the Google-YouTube-API.
Currently, it's up to you to obtain and include such metadata in your YT video files.



