Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Import metadata from Kodi-esque format (Kodi, Plex, Jellyfin) #1199

Open
CosimoVestri opened this issue Mar 11, 2021 · 4 comments
Open

Comments

@CosimoVestri
Copy link

Is your feature request related to a problem? Please describe.
No. This is a distinct feature request, not correction of existing behavior.

Describe the solution you'd like
Kodi and related systems use .NFO files (XML formatted) with the same name as the media file to store metadata. Feature would entail reading this file to obtain information to populate data fields for import.

Describe alternatives you've considered
Scraping from a Kodi web interface is one possibility, but it really isn't ideal.

Additional context
Kodi NFO to Stash Schema mapping (approximate)
Direct map:

  • title -> title
  • plot -> details

More complex mapping:

  • genre(s) -> scene_tags (scene_tag mapped to tag with same name, create new tag if new)
  • actor(s) -> performer_scenes entries connecting to performer with name of actor entry
  • rating -> rating (converting float n/10 to int n/5)
  • studio -> studio_id of studio with like name (complicated by possibility of multiple studios in Kodi format)

Import of images specified in the NFO file is another matter altogether, and should probably be relegated to another issue.

This is distinct from For conversion from #428 in that it involves actual import of metadata from a Kodi-esque library.
This is distinct from stashapp/CommunityScrapers#413 in that it involves scraping from Plex/Kodi, not the export of data from Stash.
This issue is connected to that filed at stashapp/CommunityScrapers#429

@AiWABR
Copy link

AiWABR commented May 10, 2021

Support, I like to use kodi and plex a lot, it would be great to be able to use the information obtained in the stash and also transfer it to plex

@sadukar007
Copy link

Hey, guys, i created an Emby scrapper if you are interested, i am still testing it but it basically takes the exact path of the file from the stashdb database, and makes an itemssearch on the emby api with that path and some additional filters and maps everything together.

@Phasetime
Copy link
Contributor

Hey, I just created a scraper that accomplishes ingesting from kodi/plex exports. stashapp/CommunityScrapers#689

@echo6ix
Copy link
Contributor

echo6ix commented Jan 13, 2023

More context https://kodi.wiki/view/NFO_files/Templates

Also, NFO files would be great for galleries, either in a folder or contained in a zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants