Release gdrive - Google Drive Video/Music Add-on
Hey lads,

I have faced accuracy issues with Kodi's movie library scrapers. Some STRMs would be scanned in as random movies, whilst others wouldn't be recognised at all. I think I have solved this dilemma and I'll share the solution in this post. I have scanned around 500 STRMs and all were assigned the correct metadata using this method.

For this to work:

- Your movie/strm format must mirror: The One (2001) [tt0267804].strm
# tt0267804 = the movies IMDB ID

- You must use the Universal Movie Scraper, install it from the Kodi repo.

- You must add the following code to your advancedsettings.xml file - http://kodi.wiki/view/Advancedsettings.xml

Code:
<advancedsettings>
<video>
<cleandatetime>\[(tt[0-9]+)\]</cleandatetime>
<cleanstrings></cleanstrings>
</video>
</advancedsettings>

For anyone wanting to rename their STRM files to include the IMDB ID, I have made this python script to facilitate this process. You will need to install this python wrapper for the script to function: https://pypi.python.org/pypi/tmdb3

Script:

Code:
import os
import sys
from tmdb3 import searchMovieWithYear
from tmdb3 import set_key

set_key("Your TMDb API Key Goes Here")

strmFolder = "/path/to/strm/folder"

root, dirs, files = os.walk(strmFolder).next()

for file in files:
  movieName = os.path.splitext(file)[0]
  searchResult = searchMovieWithYear(movieName)
  tmdbMatch = searchResult[0]
  fullPath = os.path.join(strmFolder, file)
  name, ext = os.path.splitext(fullPath)
  os.rename(fullPath, name + ' [' + tmdbMatch.imdb + ']' + ext)
Reply


Messages In This Thread
u - by Kraevin - 2015-05-13, 17:37
RE: [RELEASE] gdrive - Google Drive Video/Music Add-on - by SEIKT - 2017-08-17, 17:56
Logout Mark Read Team Forum Stats Members Help
gdrive - Google Drive Video/Music Add-on12