This is the first release of the Synology German Mediathek download script.
It queries the german mediathek website https://mediathekviewweb.de and uses these informations to start download-jobs on the Synology.
So in short, what does it do?
- Query Mediathekviewweb API for all airings matching the given search criteria
- Filter by:
- Number of days back that should be presented
- Exclude airings that match the ExcludeTitlesKeywords List
- Airings that are under MinimumSize or under MinimumLength
- Sort the list descending and use Out-Gridview to present the user with the choice
- If the user has selected some airings, the script will continue
- Now airing by airing will be checked if:
- Filename is requested to be set manual –> User will be requested for a name for each
- Autorename is choosen for the title (strong recommended for all Configurations)
- New Filename will be built by the configured setting AutoRenameString, Timestamp is „yyMMdd_HHmm_“
- Replace Character as of CharacterReplaceTable to prevent filesystem problems (eg. /|:)
- All files that need a rename after download will be added to a RenameTaskList
- Authenticate to NAS
- Start Download Jobs, only if File with same filename is not already there. Cleanup NAS-History of Downloadjobs of the same URL, so we get the right status
- Wait for the Downloadjobs that need a rename until they are downloaded. Check NAS every 10 Seconds to not overload
- Rename the downloaded files to the wished name
- Logoff from NAS
There is no real documentation so far except the inline documentation. If you have questions, contact me through Twitter. This script is provided as is, no warranty that it will work in all situations! It should work on Powershell 5.1 and Powershell 7.x, although it is usually tested on PS5.1.
It was written for myself to optimize download of movies/series from german mediatheks.
The Script has been published on github:
https://github.com/MrFly72/Synology_Mediathek_Download