Powershell module with various functions for working with multimedia files.
- https://github.com/dbprv/dbprv.MultiMediaHelpers
- https://www.powershellgallery.com/packages/dbprv.MultiMediaHelpers
- create .nfo files for Kodi for movies, TV shows
- search information on Kinopoisk, TMDB
- search trailers on TMDB, Youtube
- parse complex file/directory name to title, year, etc.
- search by reverse transliterated titles from english to russian
-
create config, see example
-
set environmet variable
MMH_CONFIG_PATH
= config path -
get API key for kinopoisk.dev from https://api.kinopoisk.dev/documentation
-
set environmet variable
KINOPOISK_API_KEY
= this API key
OR directly in config:Kinopoisk: ApiKey: '...'
-
get TMDB Access Token https://www.themoviedb.org/settings/api
-
set environmet variable
TMDB_ACCESS_TOKEN
= this access token
OR directly in config:Tmdb: AccessToken: '...'
Some trailers from TMDB info may be already deleted or not available for your country. To search and validate trailers on Youtube:
- go to https://console.developers.google.com
- create project
- select "ENABLE APIS AND SERVICES"
- select "YouTube Data API v3", Enable
- press "CREATE CREDENTIALS", select "Public data"
- save API key somewhere
- optionally - restrict API key: select "Credentials" - select your new API key - API restrictions - Restrict key - YouTube Data API v3 - Save
- set environmet variable
YOUTUBE_API_KEY
= this API key
OR directly in config:
Youtube:
...
ApiKey: '...'
Region: RU
- set "Region" (2 letters, as country domain) - it is used to validate if video is available for your country
Create .nfo files for Kodi media player for movies and TV series.
Information about movies is obtained from:
- Kinopoisk via API https://api.kinopoisk.dev
- TMDB
Usage:
For movies:
Create-KodiMoviesNfo -Folder 'D:\Video\Movies' -ContentType 'Movie'
For TV shows:
Create-KodiMoviesNfo -Folder 'D:\Video\TVShows' -ContentType 'TVShow'
Required params:
Folder
- folder with media filesContentType
- Movie | TVShow
Additional params:
SaveInfo
- save internal info and logs to<Folder>\.media_info
dir
Check nfo-files in media dir:
- show common list
- TMDB ID not found
- no trailer
Usage:
Check-KodiNfo -Folder 'D:\Video\Movies'
Export info from Kodi nfo-files to CSV.
Usage:
Export-KodiNfoCsv -Folders 'D:\Video\Movies', 'D:\Video\Movies2' -ResultPath 'D:\Video\Movies.csv'
Add file mmh.txt
to TV series dir. Set file content:
tvshow name year
-
MediaElch
https://forum.kodi.tv/showthread.php?tid=136333
https://github.com/komet/mediaelch stars 766 -
Media Companion
https://forum.kodi.tv/showthread.php?tid=129134
https://sourceforge.net/p/mediacompanion/wiki/Home -
https://www.reddit.com/r/tinyMediaManager
https://www.tinymediamanager.org
https://gitlab.com/tinyMediaManager/tinyMediaManager
starts 196 -
Ember Media Manager https://forum.kodi.tv/forumdisplay.php?fid=195
https://github.com/DanCooper/Ember-MM-Newscraper
last chages - 2 years ago