Jump to content

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


Recommended Posts

mickle026
Posted (edited)

From what I can see in your post

You have an URL in input 1 , Nothing in Input 2 & a local file in Input 3

Are you saying you removed the url in input1 and clicked save but it didn't save the config?
Input 1 is required. 
So if there was no input 1, it wouldn't process input 3,

So if you have both it should process both, and build an internal m3u file from both as if its just 1 file.

 

I am not sure what you are telling me, however I have noticed a loading bug with multiple files

Fixed that

 

18.Mar.2025 - 16:09:44 CreateMovieStrmsFromM3UTaskStarter method triggered.
18.Mar.2025 - 16:09:44 Inside Task.Run.
18.Mar.2025 - 16:09:44 Create strm files and folders From M3U
18.Mar.2025 - 16:09:44 Build Version: 1.0.0.114
18.Mar.2025 - 16:09:45 CPU Cores: 8: Logical Processors (Max Threads): 16, Hyperthreading: True
18.Mar.2025 - 16:09:45 Ignore [Contains]: 
18.Mar.2025 - 16:09:45 Ignore [StartsWith]: 4K,AF -,AF|,AJ -,8K,AL -,AR -,AR-ANM -,AR-KID -,AR-,BE -,BE|,BG -,BR -,CN -,DE (BLURAY),DE -,DE|,DK -,DK|,ES -,ES|,ÈS - ,ES .,ES- ,EX -,EX - ,EX -,EXYU ,FI -,FR -,FR - ,FR-,FR|,GR -,GR|,IL -,IL|,IN -,IN-,IN|,IR -,IR-,IS -,IT -,IT|,JP -,JP|,KR -,KR|,KU -,KU|,LA -,LAT -,LAT-,LATT -,LAT.. -,LATINO,MT -,MT|MT,NF -,NF - ,NF-,NF - ,NL 24,NL FILMS,NL F,NL HBO,NL M,NL NETFLIX,NL R,N -,NL -,NL ,NL|,NO -,NO|,PK -,PL -,PT -,PT ;,PT|,QC -,QFR -,RO -,RU -,RU|,RX ,SC -,SC|,SE -,SE|,SH -,TOP -,TOD -,TR -,TR|,VIU -,VIU- ,WIT-,WIT -,XU -,XU|,###,(DE),(FR),(GR),(IR),(KR),(RU),(TR),XXX,XXL
18.Mar.2025 - 16:09:45 Include [Contains]: 
18.Mar.2025 - 16:09:45 Include [StartsWith]: 
18.Mar.2025 - 16:09:45 Task Started at: 18/03/2025 16:09:45
18.Mar.2025 - 16:09:45 -----------------------------------------------------------------------
18.Mar.2025 - 16:09:45 Create Movie Stream Files From M3U Scheduled Task Triggered.
18.Mar.2025 - 16:09:45 -----------------------------------------------------------------------
18.Mar.2025 - 16:09:45 Input File 1: E:\tv_channels_*********.m3u
18.Mar.2025 - 16:09:45 Loading M3U file.
18.Mar.2025 - 16:09:45 Reading local file: E:\tv_channels_*********.m3u
18.Mar.2025 - 16:09:45 Loading m3u File Total execution time: 0 ms
18.Mar.2025 - 16:09:46 Input File 2: E:\tv_channels_*********_plus (1).m3u
18.Mar.2025 - 16:09:46 Loading M3U file.
18.Mar.2025 - 16:09:46 Reading local file: E:\tv_channels_*********_plus (1).m3u
18.Mar.2025 - 16:09:46 Loading m3u File Total execution time: 0 ms
18.Mar.2025 - 16:09:48 No Input File 3
18.Mar.2025 - 16:09:48 Total Input Files: 2
18.Mar.2025 - 16:09:48 Total m3u Items: 1675669

 

I added a few more filters in ignore such as "WIT- "

The list I am using at the movement is in the snippet above, I am testing without the includes.

 

Yours and @gillmacca01's m3u files together - using the ignore list above without any other filters

Movies: 17,079 Files, 20,281 Folders
TV Shows: 185,543 Files, 18,428 Folders

 

VODtoSTRMscheduledTask.dll

Edited by mickle026
Posted

You are right. My bad. I thought I had pasted over line 1 with the URL. Instead I pasted line 3 which kept the URL in line 1 so now it's checking both. It's still running right now at 2%

mickle026
Posted (edited)
28 minutes ago, BigIrn said:

You are right. My bad. I thought I had pasted over line 1 with the URL. Instead I pasted line 3 which kept the URL in line 1 so now it's checking both. It's still running right now at 2%

It might not be at 2% actually, 
because of the loading error I described above the progress counter in scheduled tasks would jump back to 2% at the processing of the second file.
It could actually be above 50%.

Its ok though your little oversight there made me find the error I fixed, so its all good 👍 :) 

Edited by mickle026
Posted

Hi, when I launch this plugin for settings it says there is an error. Then the screen where you configure everything is over top of everything and can not remove it. 

20250318_212926.jpg

20250318_212934.jpg

Chadstratts
Posted

Hi two of us just tried it on two different machines and are getting this. Copied to plugins folder and see it show up in plugins. But then when I go to settings it gives and error and then I can't do anything. 

20250318_212926.jpg

20250318_212934.jpg

Posted

The DLL goes in 3 folders for me. 2 under plugin folders in the app folder and one in my user folder that is hidden. I’m on macOS so that might not be true for you guys. 

gillmacca01
Posted

I'm still running 1.0.0.109, and have just done a complete reset on the plugin (deleted m3u's and VOD's). I am still getting movies identified as TV Shows.

I know this may have already been fixed in newer versions of the plugins, but I thought I would raise it, incase. I've noticed a pattern, all the movies being detected as TV Shows, have A capital K in the name (apart from the charlie sheen folder). I have only imported the VOD Movie folder into Emby. 

Not sure if the K is in the original m3u file, or if the plugin is creating the K

image.thumb.png.fe3dde5b202d1f14fe585914b91eb6b4.png

mickle026
Posted

To remove it, delete it manually from the plugins folder and restart emby.

Needs minimum 4.8.10 server version, and try the last posted version in this thread.
I will update post 1 with the newest version.

 

mickle026
Posted
8 minutes ago, gillmacca01 said:

I'm still running 1.0.0.109, and have just done a complete reset on the plugin (deleted m3u's and VOD's). I am still getting movies identified as TV Shows.

I know this may have already been fixed in newer versions of the plugins, but I thought I would raise it, incase. I've noticed a pattern, all the movies being detected as TV Shows, have A capital K in the name (apart from the charlie sheen folder). I have only imported the VOD Movie folder into Emby. 

Not sure if the K is in the original m3u file, or if the plugin is creating the K

image.thumb.png.fe3dde5b202d1f14fe585914b91eb6b4.png

I am going to re-run it here and check

but I think I can already see the error, when the name is altered to create the folder, tv shows are having the Sxx Exx removed or whatever format they have,

this looks to me like a mis detection and its detecting "2 4K" as season and episode, thus removing that.
According to my  log entry it is happening after it has already detected it as a Movie

As you can see in my log it is correctly identified as a movie, so that has been fixed already, but then it is still being ran through the episode check, it does that to absolutely make sure that its not a TV Show, but two numbers before that date are being mis-detected as season / episode and removed hence the sub folder Season 02 as you can see here.

I will adjust the detection again and try to weed this one out without breaking it

 

18.Mar.2025 - 16:42:17 channelName: EN - Coming To America 2 4K  (2021) EDDIE MURPHY
18.Mar.2025 - 16:42:17 logoUrl: https://www.themoviedb.org/t/p/original/cLw2V4cJNXD4v6o8EXCHfI9JNms.jpg
18.Mar.2025 - 16:42:17 Checking [Include Config] Include: True because config is empty.  Next check Ignore Config.
18.Mar.2025 - 16:42:17 Checking [Ignore] Contains
18.Mar.2025 - 16:42:17 Checking [Ignore] StartsWith
18.Mar.2025 - 16:42:17 Include / Ignore checking passed succesfully.
18.Mar.2025 - 16:42:17 Ingnore/Include Total execution time: 0 ms
18.Mar.2025 - 16:42:17 Detected and removed country code: Modified string is 'Coming To America 2 4K (2021) EDDIE MURPHY'
18.Mar.2025 - 16:42:17 Sanitized Channelname: Coming To AmericaK (2021) EDDIE MURPHY
18.Mar.2025 - 16:42:17 Detected Movies - URL contains the word '/Movie/'
18.Mar.2025 - 16:42:17 Detected and removed country code: Modified string is 'Coming To America 2 4K (2021) EDDIE MURPHY'
18.Mar.2025 - 16:42:17 Adding movie: Coming To America 2 4K (2021) EDDIE MURPHY
imagePath=https://www.themoviedb.org/t/p/original/cLw2V4cJNXD4v6o8EXCHfI9JNms.jpg, year=2021, genres=
18.Mar.2025 - 16:42:17 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
18.Mar.2025 - 16:42:17 Constructed Folder Name: D:\VODS\Movies\Coming To AmericaK (2021) EDDIE MURPHY\Season 02
18.Mar.2025 - 16:42:17 Item [2229330] Adding to Folder: D:\VODS\Movies\Coming To AmericaK (2021) EDDIE MURPHY\Season 02



Is it appearing like that in the logs?
 

gillmacca01
Posted

I'm just on my way to work, do can't check now, but I'm currently running it with minimal logs, so will have to re-run with verbose 

mickle026
Posted (edited)

This is ran from your m3u file, so you will have the same output with the latest dll.

I am going to sleep in a minute, just got in from a night shift, but I already looked at the code, made a few adjustments and am going to let it run while I sleep.
I will check it later.

I am glad that it is running better and although there are a few problems they are getting less and less :) 

My last logs which I have just deleted we from 2 m3u's from different providers processed together in Extra Verbose , they were 1.2 GB - LOL :) 

Edited by mickle026
fbrassin
Posted

The latest version is running without problems with my configuration right now.

Can i suggest one thing? About ignore input is it possible to make it a box so that if it is long i can see all at once without going to the and of the line?

Posted
11 hours ago, Chadstratts said:

Hi two of us just tried it on two different machines and are getting this. Copied to plugins folder and see it show up in plugins. But then when I go to settings it gives and error and then I can't do anything. 

20250318_212926.jpg

20250318_212934.jpg

On MacOS here is where I have to place the DLL:

 

Screenshot 2025-03-19 at 9.02.27 AM.png

Screenshot 2025-03-19 at 9.01.57 AM.png

Screenshot 2025-03-19 at 9.07.07 AM.png

Posted

Ok so it's working now and I think we are on the right track.

I'll do some comparisons to see if movies and TV line up.

2 Issues: emby crashed shortly after this completed this morning

EN - is still showing in front of the titles.

I'm going to try and use the meta data options instead of emby identify.

Screenshot 2025-03-19 at 10.14.02 AM.png

gillmacca01
Posted
9 hours ago, mickle026 said:

I am going to re-run it here and check

but I think I can already see the error, when the name is altered to create the folder, tv shows are having the Sxx Exx removed or whatever format they have,

this looks to me like a mis detection and its detecting "2 4K" as season and episode, thus removing that.
According to my  log entry it is happening after it has already detected it as a Movie

As you can see in my log it is correctly identified as a movie, so that has been fixed already, but then it is still being ran through the episode check, it does that to absolutely make sure that its not a TV Show, but two numbers before that date are being mis-detected as season / episode and removed hence the sub folder Season 02 as you can see here.

I will adjust the detection again and try to weed this one out without breaking it

 

18.Mar.2025 - 16:42:17 channelName: EN - Coming To America 2 4K  (2021) EDDIE MURPHY
18.Mar.2025 - 16:42:17 logoUrl: https://www.themoviedb.org/t/p/original/cLw2V4cJNXD4v6o8EXCHfI9JNms.jpg
18.Mar.2025 - 16:42:17 Checking [Include Config] Include: True because config is empty.  Next check Ignore Config.
18.Mar.2025 - 16:42:17 Checking [Ignore] Contains
18.Mar.2025 - 16:42:17 Checking [Ignore] StartsWith
18.Mar.2025 - 16:42:17 Include / Ignore checking passed succesfully.
18.Mar.2025 - 16:42:17 Ingnore/Include Total execution time: 0 ms
18.Mar.2025 - 16:42:17 Detected and removed country code: Modified string is 'Coming To America 2 4K (2021) EDDIE MURPHY'
18.Mar.2025 - 16:42:17 Sanitized Channelname: Coming To AmericaK (2021) EDDIE MURPHY
18.Mar.2025 - 16:42:17 Detected Movies - URL contains the word '/Movie/'
18.Mar.2025 - 16:42:17 Detected and removed country code: Modified string is 'Coming To America 2 4K (2021) EDDIE MURPHY'
18.Mar.2025 - 16:42:17 Adding movie: Coming To America 2 4K (2021) EDDIE MURPHY
imagePath=https://www.themoviedb.org/t/p/original/cLw2V4cJNXD4v6o8EXCHfI9JNms.jpg, year=2021, genres=
18.Mar.2025 - 16:42:17 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
18.Mar.2025 - 16:42:17 Constructed Folder Name: D:\VODS\Movies\Coming To AmericaK (2021) EDDIE MURPHY\Season 02
18.Mar.2025 - 16:42:17 Item [2229330] Adding to Folder: D:\VODS\Movies\Coming To AmericaK (2021) EDDIE MURPHY\Season 02



Is it appearing like that in the logs?
 

Yes, but it is also classing it as a tv show

image.thumb.png.a598b2e37c3167b472c97b0390ae87fc.png

 

mickle026
Posted
7 hours ago, fbrassin said:

The latest version is running without problems with my configuration right now.

Can i suggest one thing? About ignore input is it possible to make it a box so that if it is long i can see all at once without going to the and of the line?

Like this?
Screenshot_19-3-2025_142012_localhost.thumb.jpeg.5974b73bb90887018f6c5447468c6528.jpeg

 

I have change the html input boxes to text areas to handle being able to be resized, they should also now dynamically adjust to the loaded text or typed text.
Added country code + " " to the country code remove filter.

VODtoSTRMscheduledTask.dll

  • Like 2
mickle026
Posted (edited)
5 minutes ago, gillmacca01 said:

Yes, but it is also classing it as a tv show

image.thumb.png.a598b2e37c3167b472c97b0390ae87fc.png

 

19.Mar.2025 - 05:36:03 channelName: EN - Coming To America 1 (1988) EDDIE MURPHY
19.Mar.2025 - 05:36:03 logoUrl: https://www.themoviedb.org/t/p/original/4L99DjVfcp9BKYBDMPnrMyW3IOE.jpg
19.Mar.2025 - 05:36:03 Checking [Include] Contains
19.Mar.2025 - 05:36:03 Checking [Include] StartsWith
19.Mar.2025 - 05:36:03 **FILTER** Keeping [channelName] [39621]: EN - Coming To America 1 (1988) EDDIE MURPHY :Filtered by: 'EN '
19.Mar.2025 - 05:36:03 Checking [Include] StartsWith, Include: True
19.Mar.2025 - 05:36:03 Checking [Ignore] Contains
19.Mar.2025 - 05:36:03 Checking [Ignore] StartsWith
19.Mar.2025 - 05:36:03 Include / Ignore checking passed succesfully.
19.Mar.2025 - 05:36:03 Ingnore/Include Total execution time: 1 ms
19.Mar.2025 - 05:36:03 Detected and removed country code: Modified string is 'Coming To America 1 (1988) EDDIE MURPHY'
19.Mar.2025 - 05:36:03 Sanitized Channelname: Coming To America 1 (1988) EDDIE MURPHY
19.Mar.2025 - 05:36:03 Detected Movies - URL contains the word '/Movie/'
19.Mar.2025 - 05:36:03 Detected and removed country code: Modified string is 'Coming To America 1 (1988) EDDIE MURPHY'
19.Mar.2025 - 05:36:03 Adding movie: Coming To America 1 (1988) EDDIE MURPHY
imagePath=https://www.themoviedb.org/t/p/original/4L99DjVfcp9BKYBDMPnrMyW3IOE.jpg, year=1988, genres=
19.Mar.2025 - 05:36:03 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
19.Mar.2025 - 05:36:03 Constructed Folder Name: D:\VODS\Movies\Coming To America 1 (1988) EDDIE MURPHY
19.Mar.2025 - 05:36:03 Item [79240] Adding to Folder: D:\VODS\Movies\Coming To America 1 (1988) EDDIE MURPHY

I don't see that here?

*Edited*
Ah you still have the "K" so not running the fixed dll,  or maybe its me excluding the 4K, I will re-run not excluding 4k and test
 

Edited by mickle026
gillmacca01
Posted
5 minutes ago, mickle026 said:
19.Mar.2025 - 05:36:03 channelName: EN - Coming To America 1 (1988) EDDIE MURPHY
19.Mar.2025 - 05:36:03 logoUrl: https://www.themoviedb.org/t/p/original/4L99DjVfcp9BKYBDMPnrMyW3IOE.jpg
19.Mar.2025 - 05:36:03 Checking [Include] Contains
19.Mar.2025 - 05:36:03 Checking [Include] StartsWith
19.Mar.2025 - 05:36:03 **FILTER** Keeping [channelName] [39621]: EN - Coming To America 1 (1988) EDDIE MURPHY :Filtered by: 'EN '
19.Mar.2025 - 05:36:03 Checking [Include] StartsWith, Include: True
19.Mar.2025 - 05:36:03 Checking [Ignore] Contains
19.Mar.2025 - 05:36:03 Checking [Ignore] StartsWith
19.Mar.2025 - 05:36:03 Include / Ignore checking passed succesfully.
19.Mar.2025 - 05:36:03 Ingnore/Include Total execution time: 1 ms
19.Mar.2025 - 05:36:03 Detected and removed country code: Modified string is 'Coming To America 1 (1988) EDDIE MURPHY'
19.Mar.2025 - 05:36:03 Sanitized Channelname: Coming To America 1 (1988) EDDIE MURPHY
19.Mar.2025 - 05:36:03 Detected Movies - URL contains the word '/Movie/'
19.Mar.2025 - 05:36:03 Detected and removed country code: Modified string is 'Coming To America 1 (1988) EDDIE MURPHY'
19.Mar.2025 - 05:36:03 Adding movie: Coming To America 1 (1988) EDDIE MURPHY
imagePath=https://www.themoviedb.org/t/p/original/4L99DjVfcp9BKYBDMPnrMyW3IOE.jpg, year=1988, genres=
19.Mar.2025 - 05:36:03 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
19.Mar.2025 - 05:36:03 Constructed Folder Name: D:\VODS\Movies\Coming To America 1 (1988) EDDIE MURPHY
19.Mar.2025 - 05:36:03 Item [79240] Adding to Folder: D:\VODS\Movies\Coming To America 1 (1988) EDDIE MURPHY

I don't see that here?

*Edited*
Ah you still have the "K" so not running the fixed dll,  or maybe its me excluding the 4K, I will re-run not excluding 4k and test
 

Correct, I have no way to update the dll file on my QNAP while I am away (unless someone know a way), that's why I said it may have been fixed

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

Correct, I have no way to update the dll file on my QNAP while I am away (unless someone know a way), that's why I said it may have been fixed

Update?

I can add that function, so that it can detect if there is a newer build and allow an update directly from inside the plugin.
However you would have to update to the build that allows that manually first.

I will look at adding it, I already do it with one of my other plugins (not public) so I already have the code for that.

Edited by mickle026
Posted

So the issue I was having earlier with the input m3u being the m3u4u.com URL is still there. It will see it and it looks like it downloads but then finishes in a few seconds. I tried it again with just the local m3u and it is running now.

fbrassin
Posted
On 3/17/2025 at 9:32 PM, fbrassin said:

Another thing.

I found some Tv shows and some movies written like these

Is there a way to solve?

 

image.png.122c61ba97c87e044f935c062fea226e.png

Do you think there is a way to understand which characters are not recognised?

mickle026
Posted
17 minutes ago, fbrassin said:

Do you think there is a way to understand which characters are not recognised?

I have already in the last version add a standardise diacritics option, have you tried it and see if its caused by utf8/ansi characters?

What are the movies/tv show names that this is happening to?
If the names are all garbled, copy the link in the strm file and search for it in your m3u file to get the information.


Screenshot_19-3-2025_1770_localhost.jpeg.5e0a8814b97e88f1036e69834d59cc2f.jpeg

mickle026
Posted (edited)
1 hour ago, BigIrn said:

So the issue I was having earlier with the input m3u being the m3u4u.com URL is still there. It will see it and it looks like it downloads but then finishes in a few seconds. I tried it again with just the local m3u and it is running now.

What is the issue exactly?

Is it not downloading, processing, or is it just "empty" of the data you have selected to output, because of the massively reduced file size (120mb to 2.8mb)?

Edited by mickle026
Posted
15 minutes ago, mickle026 said:

What is the issue exactly?

Is it not downloading, processing, or is it just "empty" of the data you have selected to output, because of the massively reduced file size (120mb to 2.8mb)?

Very simply, m3u4u.com doesn’t produce anything.

local m3u works. 

When I ran the job that worked I had both versions. In input 1 and 3. Now I’m only running local m3u on 1. 
I will try to put in the raw m3u from my provider when this finishes to see if does anything different than using m3u4u.com

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...