Release gdrive - Google Drive Video/Music Add-on
(2016-09-17, 12:52)user321 Wrote:
(2016-09-16, 21:30)dmdsoftware Wrote:
(2016-09-16, 20:39)user321 Wrote: Can this not be interpreted from the parent folder name? Maybe the logic could be something like..
If parent folder contains (date) -and subfolder doesn't contain series format, it's a movie?

Only filenames are considered at this time. You want the folder path to be used?

Well, any method that would be able to identify the following variants as a movie:

When a user has renamed their movie:
Code:
Movie Name (YYYY).ext
(when a user has renamed their movie)

When a user has not renamed their movie, and left it according to 'Scene rules':
Code:
Movie.Name.YEAR.<720p/1080p>.BluRay.x264.-GROUP

If the current regex match is for (date), then how about:
Code:
$filename -match '\(\d{4}\)|\.\d{4}\.'

I believe this would match
(date)
or
.date.

Of course, if a user has not renamed their tv series, then it might also contain '.date.', but tv series will also match
Code:
S\d{1,2}E\d{1,2}

So
Code:
$filename -match '\(\d{4}\)|\.\d{4}\.' -and $filename -notmatch S\d{1,2}E\d{1,2}

it's a movie? Smile

also, excluding -trailer.ext and .srt files from having .strm files produced would be good. It will save Kodi scanning them (even though Kodi will ignore them).


I pushed out a new release, 0.8.13 in testing that handles this. quick check revealed it was working:

./movies/Ender's_Game.2013.720p.avc1.mp4.strm
./movies/Land.of.the.Lost.2009.720p.BrRip.x264.YIFY.mp4.strm

BTW, found a major issue with automatic STRM (all generated STRM were bad). Fixed that.
Reply


Messages In This Thread
u - by Kraevin - 2015-05-13, 17:37
RE: [RELEASE] gdrive - Google Drive Video/Music Add-on - by dmdsoftware - 2016-09-18, 15:46
Logout Mark Read Team Forum Stats Members Help
gdrive - Google Drive Video/Music Add-on12