View Issue Details

IDProjectCategoryView StatusLast Update
0012481MMW 5Tagging framework / input pluginspublic2023-11-11 02:32
Reporterpeke Assigned To 
PriorityurgentSeverityfeatureReproducibilityhave not tried
Status assignedResolutionfixed 
Target Version5.1.1 
Summary0012481: Metadata Support: Common External metadata support
DescriptionThere is number of apps and Devices using common external Metadata to faster show the library, info and its content resulting in library browsing like in supplied picture (FTP).

QNAP, Synology, netgear, d-Link, Raspberry Pi, Linux, Apple TV (ATV2 included), iOS, Android, ...

NOTE: Multiple targets may be used as they do not interfere each other.
QNAP is the first that expanded it to Mid-Range, SMB and Enterprise level https://www.youtube.com/watch?v=Xu59r_MrVag


here is the list of few targets I've confirmed:

Info structure uses METADATA INFO = RESULT

KODI (XBMC lower than v12): http://kodi.tv/
---------------------------
Show Metadata = tvshow.nfo
Episode Metadata = Season##\<filename>.nfo
Show Fanart = fanart.jpg
Show Poster = folder.jpg
Show Banner = folder.jpg
Episode Thumbnails = Season##\<filename>.tbn
Season Posters = season##.tbn
Season Banners = not supported
Season All Poster = season-all.tbn
Season All Banner = not supported

KODI (XBMC v12 and above): http://kodi.tv/
---------------------------
Show Metadata = tvshow.nfo
Episode Metadata = Season##\<filename>.nfo
Show Fanart = fanart.jpg
Show Poster = poster.jpg
Show Banner = banner.jpg
Episode Thumbnails = Season##\<filename>-thumb.jpg
Season Posters = season##-poster.jpg
Season Banners = season##-banner.jpg
Season All Poster = season-all-poster.jpg
Season All Banner = season-all-banner.jpg

Mede8er: http://www.mede8er.com/
--------
Show Metadata = series.xml
Episode Metadata = Season##\<filename>.xml
Show Fanart = fanart.jpg
Show Poster = folder.jpg
Show Banner = banner.jpg
Episode Thumbnails = Season##\<filename>.jpg
Season Posters = Season##\folder.jpg
Season Banners = Season##\banner.jpg
Season All Poster = not supported
Season All Banner = not supported

MediaBrowser: http://mediabrowser.tv/
-------------
Show Metadata = series.xml
Episode Metadata = Season##\metadata\<filename>.xml
Show Fanart = backdrop.jpg
Show Poster = folder.jpg
Show Banner = banner.jpg
Episode Thumbnails = Season##\metadata\<filename>.jpg
Season Posters = Season##\folder.jpg
Season Banners = Season##\banner.jpg
Season All Poster = not supported
Season All Banner = not supported

Sony PS3:
--------
Show Metadata = not supported
Episode Metadata = not supported
Show Fanart = not supported
Show Poster = cover.jpg
Show Banner = not supported
Episode Thumbnails = Season##\<filename>.<ext>.cover.jpg
Season Posters = not supported
Season Banners = not supported
Season All Poster = not supported
Season All Banner = not supported

TiVO: http://www.tivo.com/
--------------------------
Show Metadata = not supported
Episode Metadata = Season##\.meta\<filename>.<ext>.txt
Show Fanart = not supported
Show Poster = not supported
Show Banner = not supported
Episode Thumbnails = not supported
Season Posters = not supported
Season Banners = not supported
Season All Poster = not supported
Season All Banner = not supported

WDTV: http://www.wdc.com/en/products/products.aspx?id=1270
--------
Show Metadata = not supported
Episode Metadata = Season##\<filename>.xml
Show Fanart = not supported
Show Poster = folder.jpg
Show Banner = not supported
Episode Thumbnails = Season##\<filename>.metathumb
Season Posters = Season##\folder.jpg
Season Banners = not supported
Season All Poster = not supported
Season All Banner = not supported
TagsNo tags attached.
Fixed in build2071

Relationships

parent of 0016332 assignedmichal Auto-Tag: TV Series Auto-Tag/Properties Bugs 
related to 0013756 feedbackrusty Add/Rescan: Add additional Column of preffered/expected content type 
related to 0014048 newmichal TV Series: Browser View 
related to 0014269 closedpeke Type Detection: TV Series 
related to 0018854 closedpetr Auto-Tag fails for TV (Regression) 
related to 0014413 feedbackpeke TV Series Auto Tag still fail in some cases 
Not all the children of this issue are yet resolved or closed.

Activities

peke

2015-01-09 02:19

developer   ~0041622

I uploaded all metadata samples, Kodi (XBMC) usage UI look and feel when data is available and web browsing UI example.

peke

2015-01-11 19:34

developer   ~0041646

PLEX Media Server Metadata and Filename Naming for Muvies, Tv Shows, Music, ...

https://support.plex.tv/hc/en-us/categories/200028098-Media-Preparation

peke

2017-02-28 02:46

developer   ~0047375

Added Series.RAR (Whole folder/file listing) to FTP for Mask update and easier recognition.

peke

2017-06-03 21:04

developer   ~0048059

Last edited: 2017-06-07 18:48

TV Series Most commonly accepted File naming in organizing that recognize by all apps is:
Single-EP -> Show Name/Season 02/Show Name.S02E03.720p.HDTV.XviD-RLSGROUP.ext
Multi-EP -> Show Name/Season 02/Show Name.S02E03E04E05.720p.HDTV.XviD-RLSGROUP.ext
Multi-EP -> Show Name/Season 02/Show Name.S02E03-E05.720p.HDTV.XviD-RLSGROUP.ext

Or

Single-EP -> Season 2/Show Name - 2x03 - Ep Name.ext
Multi-EP -> Season 2/Show Name - 2x03x04x05 - Ep Name.ext

Also Common filename variants are:
Show Name.2x03.720p.HDTV.XviD-RLSGROUP.ext

Mostly Anime but some older files can contain these masks:
Show Name - <Seson#><Episode#:2> - <Episode Title>.ext

Very rarely and in 99% old (I had few from 10+ years ago) DiVX/AVI extension used:
<Season#><Episode#:2> - <Episode Title>.ext

Ludek

2017-06-22 09:16

developer   ~0048221

Last edited: 2017-06-22 10:24

I guess that the current set of masks (used also in MM4 https://www.dropbox.com/s/wmpei2kljrxi2di/Screenshot%202017-06-21%2014.20.50.png?dl=0 ) mostly works fine for season detection, but often fails for episode detection on Peke's examples.

Problem is also with filenames like these:
Multi-EP -> Show Name/Season 02/Show Name.S02E03E04E05.720p.HDTV.XviD-RLSGROUP.ext
Multi-EP -> Show Name/Season 02/Show Name.S02E03-E05.720p.HDTV.XviD-RLSGROUP.ext
Multi-EP -> Season 2/Show Name - 2x03x04x05 - Ep Name.ext

i.e. especially detecting multi-episode file is problematic and how to write the multi episode info to a single episode number field.

Assigned to me for the mask updates based on the Peke's examples on FTP (Series.rar)

peke

2017-06-22 10:11

developer   ~0048222

generally it fails completely for detecting Episode #

Secondly as pointed in this bug all info is already present and for most files metadata is false so for TV Series it is preferred to use tagging from external files and or path/filename

I uploaded "bug12481MM.db.rar" to ftp containing MM5 MM.db and Directory Listing.

Files are located under Network not under u: as in directory listing.

Ludek

2017-06-22 11:07

developer   ~0048223

Last edited: 2017-06-22 11:08

Fixed and improved in 4.1.17.1839 and merged to 5.0.0.2070

Now it works correctly for most of the files from 'Series.rar' archive.

Assigned to Peke to test it and verify in the upcoming builds 1839 + 2070

peke

2017-06-22 20:28

developer   ~0048229

Last edited: 2017-06-22 20:44

It still fails No episodes metadata is filled
I uploaded "2070.rar" with Debug log, new MM.DB and scan log.

For test I deleted MM.DB and it creates new one from scratch.

Ludek

2017-06-26 11:23

developer   ~0048259

Last edited: 2017-06-26 11:24

Peke, in 1839 it should work correctly for most of the files from 'Series.rar' archive

1) Please list all episodes that has failed to assign Episode# in 1839 for you
2) Select all such a files and press Ctrl+C
3) Open NotePad (or any text editor) and press Ctrl+V => it will create list of all the paths
4) Save the list form NotePad and attach (or upload)

peke

2017-06-26 13:20

developer   ~0048265

Last edited: 2017-06-26 13:22

As requested List of files Newly created MM.DB and Debug Log uploaded to ftp
"/MM5/bugs/bug12481/FailedTypeAndEpisodeNumber1839.rar"

Note that you will see that files are also not detected as TV 0014269

Ludek

2017-06-26 16:20

developer   ~0048269

Last edited: 2017-06-26 17:37

ok, I found it finally. I forgot that the masks are written to MM.INI as [VideoMasks] and I compiled MM with DUnit in which case always the default mask set is taken. But in your case still the old [VideoMasks] from MM.INI are used :-/ Probably so that user modified masks are not overwritten by the new default.

i.e. 1839/2070 will work for you only with clean install or deleted MM.ini
otherwise still the old masks are used.

On the other hand I guess there will be just a little number of users that modified the default set of masks? So I could try to write it to another section of MM.ini e.g. [VideoMasksNew] to preserve old [VideoMasks] just in case there are users that modified the default set?
=> Fixed in 1840/2071

Assigned to Peke for testing, note that you don't need the new builds, just delete [VideoMasks] section in MM.ini

peke

2017-06-26 21:30

developer   ~0048273

Last edited: 2017-06-26 22:52

For MMW4.x/MM5(?) I would use "If Parent/Focused Tree node is "TV Series" if exist use [TVmasks] otherwise use [VideoMasks] and send Debug MSG which masks are used" which would handle such cases of custom masks

Also for MM5 I would rather see 0013756 implemented as it covers future proof for scripting and implementation of external metadata import on scan specific to selected type.

Ludek

2017-06-26 21:48

developer   ~0048275

Reverted to [VideoMasks] for MMW4 based on discussion with Peke (Peke claims that many users changed the default mask set over the years and could be affected by the change). Left as [VideoMasksNew] for MM5.

Ludek

2017-06-27 08:17

developer   ~0048276

Re: I would use "If Parent/Focused Tree node is "TV Series" if exist use [TVmasks] otherwise use [VideoMasks]
I don't understand here as [VideoMasks] are used for determining the type (TV vs Video) per 0014269:0048205 so there needs to be only one set of masks for video types. Let's continue the discussion over IM...

Resolving for now, 0013756 is tracked separately.

Ludek

2017-06-27 11:48

developer   ~0048279

Added some accurancy improvements based on Peke's tests to 2071

peke

2017-06-29 20:36

developer   ~0048296

Accuracy Verified 2071 now as talked offline >95% of scan is accurate. Out of 3786 Episodes 3693 were correctly recognized and rest needed manual correction anyway

Haven't closed till other aspects are revised and tested.

peke

2020-12-17 10:51

developer   ~0060865

Verified 2286 implemented parts

Confirmed for 5.0.1 improvement revision