Youtube exact upload

Adds exact upload time to youtube videos

2021-04-04 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

लेखक
Wissididom
रेटिंग
0 0 0
आवृत्ती
0.4
बनवली
2021-03-27
अपडेट केली
2021-04-04
आकार
15.2 KB
License
WTFPL
यांवर लागू होते:

Adds the time to the upload timestamp below the video.

Die time update can take up to 5 seconds (when the website is loaded, a request is made to the YouTube Data API v3 and its value is then set).
The formats of the constants in the source code need to be checked and possibly adjusted (default values in quotes):
DATE_PATTERN: "DD.MM.YYYY" Example: 27.03.2021.
TIME_PATTERN: "HH:mm:ss [Uhr]" Example: 22:00:00
DATETIME_COMBINE_PATTERN: " [um] "
SCHEDULED_LIVESTREAM_START: "Livestream geplant für: "
SCHEDULED_PREMIERE_START: "Premiere geplant für: "
ONGOING_LIVESTREAM_START: "Aktiver Livestream seit "
ONGOING_PREMIERE_START: "Aktive Premiere seit "
ENDED_LIVESTREAM_START: "Livestream von "
ENDED_PREMIERE_START: "Premiere von "
DATETIME_UNTIL_PATTERN: " bis "
SINCE: "Seit"
YT_API_KEY: "API-Key"
For the first 3 constants, square brackets must be around for text that should not be formatted.
In the counter of active livestream or premieres, days are appended in front, if the livestream goes over 24 hours (two or more digits).
The API key must be created at https://console.developers.google.com/ and entered into the YT_API_KEY constant in the script (YouTube Data API v3).

Known Bugs
If a livestream or a premiere changes from scheduled to active or from active to finished, the script does not get it (If someone knows how I get the change or in which yt-event you could listen there, I could include it).