Jump to content

Plugin: Export VODS from .m3u - split m3u livetv, tvshows, movies (Going BETA!!)


Recommended Posts

mickle026
Posted
29 minutes ago, gillmacca01 said:

I think your right here.

First screenshot from a mixed content library looking at 2-Headed Shark Attack (appearing as a tv show)

image.thumb.png.c52d2c109db3d77f28970372a11201b6.png

Same movie, but searched from a movie library (movie is displayed), but it's classed as a episode in Emby

image.thumb.png.624a48407074d8137ce1db5ff7a9f3f3.png

So If I was to tell Emby to populate the metadata from tmdb, this SHOULD be identified as a movie?

I am not sure.


What I found when trying to get the API providers working was that the Pre appended country codes caused havoc with the TMDB api not recognising most items.
That's where the idea about removing them came from and why that was added into the plugin as an option.
 

so when I call them TMDB api

string tmdbSearchUrl = $"https://api.themoviedb.org/3/search/movie?api_key={tmdbApiKey}&query={Uri.EscapeDataString(movieName)}";

like this, add api key, and the movie name, most items are not found when the have the country code pre-appended such as "DE - 2 Headed Shark Attack", but it would find "2 Headed Shark Attack"

Perhaps this is happening, and TVDB is giving a response in the mixed mode library??

Honest answer is I don't actually know what Emby is doing in this scenario.

What I am actually concerned about is this output correctly via the plugin?

So there are a few Options for your output to be properly identified in Emby
1:
/VODS/
/VODS/Movies <---- import this as only a movie library
/VODS/TV Shows <---- import this as only a TV Show library

2:
Remove Country Codes when you export items, 
I could actually look at adding in a country code folder instead? /VODS/Movies/DE/2 Headed Shark Attack .....  <-- This is possible

3:
Add API provider ids to the output files <----- takes much longer

 

gillmacca01
Posted (edited)
13 minutes ago, mickle026 said:

I am not sure.


What I found when trying to get the API providers working was that the Pre appended country codes caused havoc with the TMDB api not recognising most items.
That's where the idea about removing them came from and why that was added into the plugin as an option.
 

so when I call them TMDB api

string tmdbSearchUrl = $"https://api.themoviedb.org/3/search/movie?api_key={tmdbApiKey}&query={Uri.EscapeDataString(movieName)}";

like this, add api key, and the movie name, most items are not found when the have the country code pre-appended such as "DE - 2 Headed Shark Attack", but it would find "2 Headed Shark Attack"

Perhaps this is happening, and TVDB is giving a response in the mixed mode library??

Honest answer is I don't actually know what Emby is doing in this scenario.

What I am actually concerned about is this output correctly via the plugin?

So there are a few Options for your output to be properly identified in Emby
1:
/VODS/
/VODS/Movies <---- import this as only a movie library
/VODS/TV Shows <---- import this as only a TV Show library

2:
Remove Country Codes when you export items, 
I could actually look at adding in a country code folder instead? /VODS/Movies/DE/2 Headed Shark Attack .....  <-- This is possible

3:
Add API provider ids to the output files <----- takes much longer

 

ignore the DE one - my laptop has the full m3u added (via live tv) to it as well as the VODs via the plugin, so they will be doubled up. On my nas the original m3u is run through live tv and is filtered to not show VODs

I also don't have metdata providers turned on for the VOD library

Edited by gillmacca01
gillmacca01
Posted (edited)

I have removed the movie library, and re-added it with tmdb provider enabled. Going to take all night to populate, but want to see what happens with the movies Emby thinks are episodes.

Will report back tomorrow

But, I have noticed this, with a few movies (I know you put a fix in), it is prefixing with EN on these movies

image.png.4bfb87d9af434ff26b4f0638ce767b78.png

Edited by gillmacca01
gillmacca01
Posted

Although metadata is currently being pulled in, things are looking good. Searching 2 headed shark is now showing in Emby as a movie. Fingers crossed

image.thumb.png.64d61b0b782d406375948a8e533c18a7.png

mickle026
Posted
8 minutes ago, gillmacca01 said:

I have removed the movie library, and re-added it with tmdb provider enabled. Going to take all night to populate, but want to see what happens with the movies Emby thinks are episodes.

Will report back tomorrow

But, I have noticed this, with a few movies (I know you put a fix in), it is prefixing with EN on these movies

image.png.4bfb87d9af434ff26b4f0638ce767b78.png

All 4 of them are in the list of edge cases, that previously were having their titles removed and became year only because  their titles can be considered country codes.

I will take another look at the edge cases, perhaps something is not allowing the county code to be removed in my code when it should, it wouldn't be the first time!

Posted

@mickle026what are the pros and cons of using the tmdb/omdb/tvdb for identify vs emby? I went ahead and signed up to each site for the api keys to use but I don't know why

Posted

Instead of having emby streaming using the root folder I changed it to 2 folders (tv shows/movies) and it did this:

 

Screenshot 2025-03-25 171708.png

mickle026
Posted
38 minutes ago, BigIrn said:

@mickle026what are the pros and cons of using the tmdb/omdb/tvdb for identify vs emby? I went ahead and signed up to each site for the api keys to use but I don't know why

It should rename your strm files so that they include the providers id like the example in the plugin web user interface.

Emby will then read this and use it to look up the title, thus giving a more accurate import in to Emby.

  • Like 1
mickle026
Posted
38 minutes ago, BigIrn said:

Instead of having emby streaming using the root folder I changed it to 2 folders (tv shows/movies) and it did this:

 

Screenshot 2025-03-25 171708.png

I see what emby is showing you but is it correct on the drive?

Posted
35 minutes ago, mickle026 said:

I see what emby is showing you but is it correct on the drive?

No way is it correct unless it's counting individual episodes of a season of tv shows.

mickle026
Posted
36 minutes ago, BigIrn said:

Here is some screenshots

Screenshot 2025-03-25 185337.png

Screenshot 2025-03-25 185424.png

Screenshot 2025-03-25 185502.png

Screenshot 2025-03-25 185550.png

I would still like to know if the files in the storage drive are correct?  Take a look directly at your storage drive rather than in emby.

How Emby has imported them is an Emby issue, rather than the vod plugin.

Like I suggested to @gillmacca01 above, try creating 2 libraries, TV shows and movies separately and point emby to those folders separately and see if it's the same.

gillmacca01
Posted

So found a couple of anomalies. 

Films duplicated - not a plugin problem (films in multiple categories)

Some movies not getting identified - i can manually identify them, but just fyi some of these movies have a number in front that shouldn't be there, example: 01-Asterix The Gaul, 02 EN - Friday The 13th Part 2 (including movies starting with 04 up to 09). Not sure how many movies, but I think 20+

gillmacca01
Posted

So now it looks like 99% has been sorted, it's back to the QNAP to try and find out why it's got from completing in 22 mins, to over 4 hrs now

mickle026
Posted
6 hours ago, gillmacca01 said:

So found a couple of anomalies. 

Films duplicated - not a plugin problem (films in multiple categories)

Some movies not getting identified - i can manually identify them, but just fyi some of these movies have a number in front that shouldn't be there, example: 01-Asterix The Gaul, 02 EN - Friday The 13th Part 2 (including movies starting with 04 up to 09). Not sure how many movies, but I think 20+

I have fixed the edge cases movies with the country codes here on my build pc (dll still to be posted)

I doubt there is an easy fix for the few with numbers Infront of them without causing interference to films that actually start with numbers.  I would have to code a function that did it generally for any movie from any m3u to cover something like this.

Have you separated the libraries, or are you still mixed mode?

gillmacca01
Posted

Separate libraries

mickle026
Posted
3 minutes ago, gillmacca01 said:

Separate libraries

Can you remember when you had it mixed mode whether emby was counting episodes as individual items like movies?

I think that is what was happening to @BigIrn.  I think theirs is mixed mode and having issues with items being identified properly and the library counting every item rather than every film and every TV show, it seems to be counting every film and every episode.

Mixed mode seems like it's not working well.  However that is just an assumption because I haven't imported anything in my tests.

Non of this is a plugin issue though.  My main concern is getting the plugin to do the correct things that it needs to do.

 

Posted
13 hours ago, mickle026 said:

I would still like to know if the files in the storage drive are correct?  Take a look directly at your storage drive rather than in emby.

How Emby has imported them is an Emby issue, rather than the vod plugin.

Like I suggested to @gillmacca01 above, try creating 2 libraries, TV shows and movies separately and point emby to those folders separately and see if it's the same.

I'll do that in a bit. Any reason why the plugin would run longer than a day on a mac? It's never done this before. I'll dm you the log.

gillmacca01
Posted
43 minutes ago, mickle026 said:

Can you remember when you had it mixed mode whether emby was counting episodes as individual items like movies?

I think that is what was happening to @BigIrn.  I think theirs is mixed mode and having issues with items being identified properly and the library counting every item rather than every film and every TV show, it seems to be counting every film and every episode.

Mixed mode seems like it's not working well.  However that is just an assumption because I haven't imported anything in my tests.

Non of this is a plugin issue though.  My main concern is getting the plugin to do the correct things that it needs to do.

 

Can't remember.  When I get back to the hotel, I'll create a mixed library and let you know

Posted

@gillmacca01@mickle026Is there a way to scan library files? It's taking forever... to be fair I think creating 2 libraries for movies and shows and pointing them directly to their respective folders seems to be working at least for what has been scanned so far.

Screenshot 2025-03-26 090758.png

Screenshot 2025-03-26 090814.png

Screenshot 2025-03-26 093530.png

Screenshot 2025-03-26 093556.png

Screenshot 2025-03-26 093816.png

Screenshot 2025-03-26 093859.png

gillmacca01
Posted

It will take along time, depending on how much content you have and whether you are getting metatdata for everything as well 

Posted

In folder 15224 movies, 3274 shows... any guesstimate? How do I turn off downloading metadata? I really only want to see the title of the media so I can compare the libraries in emby to my folders in windows.

mickle026
Posted
2 minutes ago, BigIrn said:

In folder 15224 movies, 3274 shows... any guesstimate? How do I turn off downloading metadata? I really only want to see the title of the media so I can compare the libraries in emby to my folders in windows.

To turn them off, go to Emby library Edit in Libraries, uncheck the metadata fetchers for data and images, restart the Emby Server Process(Otherwise they dont turn off)

  • Like 1
gillmacca01
Posted

This is how my shows appear in Mixed Content Library

image.thumb.png.0260a57a1e0678c930ad419148b05863.png

gillmacca01
Posted

And a TV Show only library

image.thumb.png.80fbf3ce86cf10f7ad9fe4205a3ebb20.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...