Plex and STUB files from KODI ?

Hi,

A bit of background of my environment to help out to understand.
I got some folders set up following KODI naming convention and so far I have managed to read metadata from KODI nfo files to PLEX. That works fine.

├── 91 Days
│   ├── 91 Days - 1x01 - Night of the Murder.mkv
│   ├── 91 Days - 1x01 - Night of the Murder.nfo
│   ├── 91 Days - 1x01 - Night of the Murder-poster.jpg
│   ├── 91 Days - 1x01 - Night of the Murder-thumb.jpg
│   ├── 91 Days - 1x02 - Phantom of Falsehood.mkv
│   ├── 91 Days - 1x02 - Phantom of Falsehood.nfo
│   ├── 91 Days - 1x02 - Phantom of Falsehood-poster.jpg
│   ├── 91 Days - 1x02 - Phantom of Falsehood-thumb.jpg
│   ├── 91 Days - 1x03 - Where the Footfalls Lead.mkv
│   ├── 91 Days - 1x03 - Where the Footfalls Lead.nfo
│   ├── 91 Days - 1x03 - Where the Footfalls Lead-poster.jpg
│   ├── 91 Days - 1x03 - Where the Footfalls Lead-thumb.jpg
│   ├── 91 Days - 1x04 - Losing to Win, and What Comes After.mkv
│   ├── 91 Days - 1x04 - Losing to Win, and What Comes After.nfo
│   ├── 91 Days - 1x04 - Losing to Win, and What Comes After-poster.jpg
│   ├── 91 Days - 1x04 - Losing to Win, and What Comes After-thumb.jpg
│   ├── 91 Days - 1x05 - Blood Will Have Blood.mkv
│   ├── 91 Days - 1x05 - Blood Will Have Blood.nfo
│   ├── 91 Days - 1x05 - Blood Will Have Blood-poster.jpg
│   ├── 91 Days - 1x05 - Blood Will Have Blood-thumb.jpg
│   ├── 91 Days - 1x91 - .mkv
│   ├── 91 Days - 1x91 - -poster.jpg
│   ├── 91 Days - 1x91 - -thumb.jpg
│   ├── banner.jpg
│   ├── fanart.jpg
│   ├── poster.jpg
│   ├── season01-poster.jpg
│   ├── season-all-banner.jpg
│   ├── season-all-poster.jpg
│   └── tvshow.nfo

Now I’d created another folder with “empty” series and want Plex to import it from those metadata , goal is that I create folder for each watched series but without actual episodes inside and Plex nicely imports it in.

├── 07-Ghost (2009)
│   ├── banner.jpg
│   ├── clearart.png
│   ├── fanart.jpg
│   ├── logo.png
│   ├── poster.jpg
│   ├── season01-poster.jpg
│   ├── thumb.jpg
│   └── tvshow.nfo
├── A Bridge to the Starry Skies (2011)
│   ├── banner.jpg
│   ├── clearart.png
│   ├── fanart.jpg
│   ├── logo.png
│   ├── poster.jpg
│   ├── season01-poster.jpg
│   ├── season-specials-poster.jpg
│   ├── thumb.jpg
│   └── tvshow.nfo
├── Accel World (2012)
│   ├── banner.jpg
│   ├── clearart.png
│   ├── fanart.jpg
│   ├── logo.png
│   ├── poster.jpg
│   ├── season01-poster.jpg
│   ├── season-specials-poster.jpg
│   └── tvshow.nfo

In KODI I can use STUBs to achieve that, but can Plex do that for me or is there another way to do that ?

Why do I ask ? Because there’s another great tool, which exports plex DB to webpage and I want to keep track of old watched series.

Any help please ?

My metadata is created by SickGear (for new series) or TinyMediaManager (for old/watched ones).

use my scanner and modify so that tvshow.nfo are processed into actual season and episode numbers and added
Can you attach kodi stubs so i add the support in my scanner ?

Will try your hint evening.

For stubs - will do too.

Cheers

Here are stubs from KODI:
https://dev.seph.pl/Akame%20ga%20Kill!%20(2014).7z
or https://dev.seph.pl/AntiMagic%20Academy%2035th%20Test%20Platoon%20(2015).7z

They do work for series and movies, one point you must either have some optical drive or some DVD/CD emulator in order to show this popup insert disc.

I played a bit with ASS :wink:
I have setup it as scanner for that library:

Have view on movie @ YT: https://youtu.be/k8-Y9nR933Q

No luck so far - what did you mean by modify ?

If you create and empty file and name it like the below, it should work

  • AntiMagic Academy 35th Test Platoon (2014)/AntiMagic Academy 35th Test Platoon (2014) s01e01-12.avi

If you download “Absolute Series Scanner.py” [github.com/ZeroQI/Absolute-Series-Scanner/blob/master/Scanners/Series/Absolute%20Series%20Scanner.py] and modify line 48 and add [, ‘disc’] (without brackets) to the ned of VIDEO_EXTS array then it will accept:

  • Akame ga Kill! 1x01.disc/Akame ga Kill! 1x01.disc
  • Akame ga Kill! 1x01.disc/Akame ga Kill! 1x02.disc
  • AntiMagic Academy 35th Test Platoon (2014)/AntiMagic Academy 35th Test Platoon (2014) s01e01-13.disc if you want to display all eps, with any content in it.

tvshow.nfo contain the tvdb url so could add all eps in one go without ep disc file without folder modification but would need to code something… Let’s stick with the ep disk files (Akame ga Kill! 1x01.disc)

http://www.thetvdb.com/api/1D62F2F90030C444/series/280329/all/pl.xml

Now if you want to actually load the video from the disc, i would need to read the disc file for the actual path in the .disc file BUT plex doesn’t support stub files so we can’t have popups

Stopped PMS on my QNAP, appended new extension to line 50 via VI. Started PMS.

I have added empty avi file to AntiMagic Academy dir, Plex did catch that, but not metadata, that’s fine for moment.
I gived push and created empty avi file for Accel World, asked Plex to refresh and no luck this time, show did add to list.

I do not see why it’s not working.

https://youtu.be/76TmG8PV304

STUBs files are for KODI, Plex won’t support them AFAIK.

Did you modify line 48 and add [, ‘disc’] (without brackets) to the end of VIDEO_EXTS array to
https://github.com/ZeroQI/Absolute-Series-Scanner/blob/master/Scanners/Series/Absolute%20Series%20Scanner.py ?

yes, i did. as i wrote i appended array at line 50 (the end of it).