Can't extract series metadata
Hi!
I'm using Serviio 2.0.
Now I have a problem with extracting metadata for series film.
IMDB - https://www.imdb.com/title/tt0076992/
TheTVDB - https://thetvdb.com/series/288383/seasons/official/1
I created a folder "Buddenbrooks [tt0076992].1979"
There are episodes files with names "Buddenbrooks S01E01 - 01", "Buddenbrooks S01E02 - 02" etc. in this folder.
But after extracting a metadata this film is neither in the Series folder nor in the Films folder.
There are "Buddenbrooks S01E01 - 01", "Buddenbrooks S01E02 - 02" etc. in the last added folder.
It is a debug log.
I see one problem in it:
Serviio search by dvdSeason and dvdEpisode but does not search by airedSeason and airedEpisode.
This film have not dvd seasons and dvd episodes but have aired season 1 and aired episodes.
Perhaps this is the problem. Or is there other reason?
I'm using Serviio 2.0.
Now I have a problem with extracting metadata for series film.
IMDB - https://www.imdb.com/title/tt0076992/
TheTVDB - https://thetvdb.com/series/288383/seasons/official/1
I created a folder "Buddenbrooks [tt0076992].1979"
There are episodes files with names "Buddenbrooks S01E01 - 01", "Buddenbrooks S01E02 - 02" etc. in this folder.
But after extracting a metadata this film is neither in the Series folder nor in the Films folder.
There are "Buddenbrooks S01E01 - 01", "Buddenbrooks S01E02 - 02" etc. in the last added folder.
It is a debug log.
- Code:
2020-04-07 22:14:49,429 DEBUG [PipeManager] Adding file '/mnt/media/video/Buddenbrooks [tt0076992].1979/Buddenbrooks S01E01 - 01.avi' t
o the delta queue (file added)
2020-04-07 22:14:49,433 DEBUG [MediaFileIndexer] Found file '/mnt/media/video/Buddenbrooks [tt0076992].1979/Buddenbrooks S01E01 - 01.av
i', checking if it's already in the Library
2020-04-07 22:14:49,433 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /mnt/media/video/Buddenbrooks [tt0076992].1
979/Buddenbrooks S01E01 - 01.avi
2020-04-07 22:14:49,434 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /mnt/media/video/Buddenbrooks [tt0076992].1979/
Buddenbrooks S01E01 - 01.avi, ignore case: false
2020-04-07 22:14:49,434 DEBUG [MediaItemDAOImpl] Media item /mnt/media/video/Buddenbrooks [tt0076992].1979/Buddenbrooks S01E01 - 01.avi
doesn't exist in DB yet
2020-04-07 22:14:49,434 DEBUG [MediaFileIndexer] File not in Library, will add it
2020-04-07 22:14:49,434 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2020-04-07 22:14:49,435 DEBUG [LibraryHelper] Checking if the file is complete using file size
2020-04-07 22:14:50,186 DEBUG [LibraryHelper] File is complete with size 428046336
2020-04-07 22:14:50,186 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /mnt/media/video/Buddenbrooks [tt0076992].19
79/Buddenbrooks S01E01 - 01.avi
2020-04-07 22:14:50,186 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /mnt/media/video/Buddenbrooks [tt
0076992].1979/Buddenbrooks S01E01 - 01.avi
2020-04-07 22:14:50,186 DEBUG [ProcessExecutor] Starting ffmpeg -i /mnt/media/video/Buddenbrooks [tt0076992].1979/Buddenbrooks S01E01 -
01.avi
2020-04-07 22:14:50,430 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve thumbnail for file: /mnt/media/video/Buddenbrooks [tt0076992]
.1979/Buddenbrooks S01E01 - 01.avi
2020-04-07 22:14:50,431 DEBUG [ProcessExecutor] Starting ffmpeg -threads 0 -ss 120 -i /mnt/media/video/Buddenbrooks [tt0076992].1979/Bu
ddenbrooks S01E01 - 01.avi -an -frames:v 1 -f image2 pipe:
2020-04-07 22:14:50,762 DEBUG [OpenSubtitlesService] Generating hash code for opensubtitles.org for file Buddenbrooks S01E01 - 01.avi
2020-04-07 22:14:50,773 DEBUG [MetadataExtractionCoordinator] Metadata found via extractor EMBEDDED: VideoMetadata [title=Buddenbrooks
S01E01 - 01, filePath=/mnt/media/video/Buddenbrooks [tt0076992].1979/Buddenbrooks S01E01 - 01.avi, fileSize=428046336, audioTracks=1/MP
3/112/2/48000//false, bitrate=984, container=AVI, contentType=UNKNOWN, rating=null, duration=3477, episodeNumber=null, fps=23.976, h264
Levels={}, h264Profile=null, ftyp=null, height=432, seasonNumber=null, seriesName=null, timestampType=null, videoBitrate=863, videoCode
c=MPEG4, videoFourCC=xvid, videoStreamIndex=0, width=608, embeddedSubtitles=[]]
2020-04-07 22:14:50,774 DEBUG [TheTVDBv2SourceAdaptor] Searching for series by IMDB ID 'tt0076992'
2020-04-07 22:14:50,774 DEBUG [TheTVDBv2SourceAdaptor] Searching for episode (seriesId = 288383, season = 1, episode = 1)
2020-04-07 22:14:50,775 DEBUG [TheTVDBv2SourceAdaptor] Request on thetvdb.com returned no results: https://api.thetvdb.com/series/28838
3/episodes/query?dvdSeason=1&dvdEpisode=1
2020-04-07 22:14:50,775 DEBUG [TheTVDBv2SourceAdaptor] Fetching episode details for episode '5050674' in language: default
2020-04-07 22:14:50,776 DEBUG [TheTVDBv2SourceAdaptor] Fetching episode details for episode '5050674' in language: ru
2020-04-07 22:14:50,776 DEBUG [TheTVDBv2SourceAdaptor] Fetching series details for series '288383' in language: default
2020-04-07 22:14:50,776 DEBUG [TheTVDBv2SourceAdaptor] Fetching series details for series '288383' in language: ru
2020-04-07 22:14:50,777 DEBUG [TheTVDBv2SourceAdaptor] Fetching series actors details for series '288383'
2020-04-07 22:14:50,777 DEBUG [TheTVDBv2SourceAdaptor] Request on thetvdb.com returned no results: https://api.thetvdb.com/series/28838
3/actors
2020-04-07 22:14:50,777 DEBUG [TheTVDBv2SourceAdaptor] Fetching series images details for series '288383' in language: default
2020-04-07 22:14:50,778 DEBUG [TheTVDBv2SourceAdaptor] Request on thetvdb.com returned no results: https://api.thetvdb.com/series/28838
3/images/query?keyType=poster
2020-04-07 22:14:50,778 DEBUG [TheTVDBv2SourceAdaptor] Fetching series images details for series '288383' in language: ru
2020-04-07 22:14:50,778 DEBUG [TheTVDBv2SourceAdaptor] Request on thetvdb.com returned no results: https://api.thetvdb.com/series/28838
3/images/query?keyType=poster
2020-04-07 22:14:50,778 DEBUG [TheTVDBv2SourceAdaptor] Fetching series images details for series '288383' in language: default
2020-04-07 22:14:50,778 DEBUG [TheTVDBv2SourceAdaptor] Fetching series images details for series '288383' in language: ru
2020-04-07 22:14:50,779 DEBUG [TheTVDBv2SourceAdaptor] Request on thetvdb.com returned no results: https://api.thetvdb.com/series/28838
3/images/query?keyType=fanart
2020-04-07 22:14:51,487 DEBUG [TheTVDBv2SourceAdaptor] Retrieved banner: http://thetvdb.com/banners/fanart/original/288383-1.jpg
2020-04-07 22:14:51,487 DEBUG [MetadataExtractionCoordinator] Metadata found via extractor ONLINE_VIDEO_SOURCES: VideoMetadata [title=n
ull, filePath=null, fileSize=0, audioTracks=, bitrate=null, container=null, contentType=EPISODE, rating=null, duration=null, episodeNum
ber=1, fps=null, h264Levels={}, h264Profile=null, ftyp=null, height=null, seasonNumber=1, seriesName=null, timestampType=null, videoBit
rate=null, videoCodec=null, videoFourCC=null, videoStreamIndex=null, width=null, embeddedSubtitles=[]]
2020-04-07 22:14:51,491 DEBUG [VideoService] Adding video into database: Buddenbrooks S01E01 - 01
2020-04-07 22:14:51,491 DEBUG [FolderDAOImpl] Looking for folder hierarchy Buddenbrooks [tt0076992].1979
2020-04-07 22:14:51,491 DEBUG [CoverImageService] Resizing and storing cover art image for max resolution of 320x320
2020-04-07 22:14:51,491 DEBUG [ImageUtils] Starting image resize, size = 28982 bytes
2020-04-07 22:14:51,503 DEBUG [ImageUtils] Returning resized image, size = 15358 bytes
2020-04-07 22:14:51,503 DEBUG [CoverImageService] Image successfully resized
2020-04-07 22:14:51,503 DEBUG [CoverImageService] Resizing and storing cover art image for max resolution of 160x160
2020-04-07 22:14:51,503 DEBUG [ImageUtils] Starting image resize, size = 15358 bytes
2020-04-07 22:14:51,508 DEBUG [ImageUtils] Returning resized image, size = 5692 bytes
2020-04-07 22:14:51,508 DEBUG [CoverImageService] Image successfully resized
2020-04-07 22:14:51,508 DEBUG [CoverImageDAOImpl] Creating a new ImageCover (length = 5692)
2020-04-07 22:14:51,517 DEBUG [VideoDAOImpl] Creating a new Video (title = Buddenbrooks S01E01 - 01)
2020-04-07 22:14:51,521 DEBUG [PersonDAOImpl] Adding a Person Unknown to media item 3251 as DIRECTOR
2020-04-07 22:14:51,521 DEBUG [PersonDAOImpl] Reading a Person (name = Unknown)
2020-04-07 22:14:51,521 DEBUG [PersonDAOImpl] Checking if person 67 has a role DIRECTOR for media item 3251
2020-04-07 22:14:51,524 DEBUG [PersonDAOImpl] Adding a Person Unknown to media item 3251 as PRODUCER
2020-04-07 22:14:51,524 DEBUG [PersonDAOImpl] Reading a Person (name = Unknown)
2020-04-07 22:14:51,525 DEBUG [PersonDAOImpl] Checking if person 67 has a role PRODUCER for media item 3251
2020-04-07 22:14:51,528 DEBUG [PersonDAOImpl] Adding a Person Unknown to media item 3251 as ACTOR
2020-04-07 22:14:51,528 DEBUG [PersonDAOImpl] Reading a Person (name = Unknown)
2020-04-07 22:14:51,528 DEBUG [PersonDAOImpl] Checking if person 67 has a role ACTOR for media item 3251
2020-04-07 22:14:51,531 DEBUG [GenreDAOImpl] Retrieving list of genres for media item 3251
2020-04-07 22:14:51,531 DEBUG [GenreDAOImpl] Reading a Genre (name = Drama)
2020-04-07 22:14:51,531 DEBUG [GenreService] Genre Drama found
2020-04-07 22:14:51,531 DEBUG [GenreDAOImpl] Adding a new Media Item to Genre (media item = 3251, genre = 548)
2020-04-07 22:14:51,532 DEBUG [GenreDAOImpl] Reading a Genre (name = Mini-Series)
2020-04-07 22:14:51,532 DEBUG [GenreService] Genre Mini-Series found
2020-04-07 22:14:51,533 DEBUG [GenreDAOImpl] Adding a new Media Item to Genre (media item = 3251, genre = 549)
2020-04-07 22:14:51,534 DEBUG [MetadataDescriptorDAOImpl] Creating a new MetadataDescriptor (type = ONLINE_VIDEO_SOURCES, mediaItemId = 3251)
2020-04-07 22:14:51,536 DEBUG [MetadataDescriptorDAOImpl] Creating a new MetadataDescriptor (type = EMBEDDED, mediaItemId = 3251)
2020-04-07 22:14:51,539 DEBUG [CoverImageDAOImpl] Reading a CoverImage for folder (id = 812)
2020-04-07 22:14:51,541 INFO [MediaFileIndexer] Added file '/mnt/media/video/Buddenbrooks [tt0076992].1979/Buddenbrooks S01E01 - 01.avi' (title: Buddenbrooks S01E01 - 01) to Library
2020-04-07 22:14:51,554 DEBUG [FolderDAOImpl] Reading a Folder (id = 812)
2020-04-07 22:14:51,554 DEBUG [FolderDAOImpl] Getting number of media items in folder 812
2020-04-07 22:14:52,810 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3251)
2020-04-07 22:14:52,811 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2020-04-07 22:14:52,894 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 5173)
2020-04-07 22:14:53,859 DEBUG [FeedUpdaterWorker] Checking for new and expired online resources
2020-04-07 22:14:53,859 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2020-04-07 22:14:53,860 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2020-04-07 22:14:53,860 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2020-04-07 22:14:53,860 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2020-04-07 22:14:54,013 DEBUG [SearchManager] Committing search index
2020-04-07 22:14:54,752 DEBUG [AbstractCDSLibraryIndexingListener] Library updated, notifying CDS
2020-04-07 22:14:54,753 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2020-04-07 22:14:54,753 DEBUG [LocalContentCacheDecorator] Cleared cache (local_default)
2020-04-07 22:14:57,968 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3251)
2020-04-07 22:14:57,969 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2020-04-07 22:15:03,936 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3251)
2020-04-07 22:15:03,937 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2020-04-07 22:15:08,967 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3251)
2020-04-07 22:15:08,968 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2020-04-07 22:15:14,405 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3251)
2020-04-07 22:15:14,406 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2020-04-07 22:15:19,455 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3251)
2020-04-07 22:15:19,455 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
I see one problem in it:
Serviio search by dvdSeason and dvdEpisode but does not search by airedSeason and airedEpisode.
This film have not dvd seasons and dvd episodes but have aired season 1 and aired episodes.
Perhaps this is the problem. Or is there other reason?