Jump to content

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


Recommended Posts

gillmacca01
Posted

More bad news. I have removed everything in the movie override field and saved. checked the config file and it is correct. 

Re-run the plugin, and as far as i can tell (without checking all 3000+ movies) none of the movies have been reimported 

mickle026
Posted

@gillmacca01

16.Mar.2025 - 14:18:29 Keeping [channelName] [35113]: EN - Jailbreak Pact (2020) :Filtered by: 'EN '
16.Mar.2025 - 14:18:29 Sanitized Channelname: EN - Jailbreak Pact (2020)
16.Mar.2025 - 14:18:29 Detected Movies - URL contains the word '/Movie/'
16.Mar.2025 - 14:18:29 Adding movie: EN - Jailbreak Pact (2020)
16.Mar.2025 - 14:18:29 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
16.Mar.2025 - 14:18:29 Item [70224] Adding to Folder: D:\VODS\Movies\Jailbreak Pact (2020)

include words & using URL string checking
 

EN ,EN -,EN|,US ,US|,UK,|EN|

image.jpeg.04925f145e5e04173bcfb09889f1c02e.jpeg

 

Also the new option
image.jpeg.5a612e6facfa32031dfa57e186cfd670.jpeg

VODtoSTRMscheduledTask.dll

mickle026
Posted

The thing for me to check is whether its being properly detected without the url string check

gillmacca01
Posted

So, i've run the latest version, none of the strm's in the output file have had EN removed, and still not importing the 3000+ movies that were detected at tv shows.

Should I delete the output folders and let it rebuild from scratch?

mickle026
Posted

Testing now with full logs  so i can see what is or isn't happening and take action.

Just waiting for it to finish,

then i will run the process again with my debugger attached to the emby process so i can break into the code and see the values as they are changing (or not)

Give me a few ....

mickle026
Posted

So here's where I am at,

I have corrected detection when Check URL is not selected
I have corrected remove country codes - wondering if I should add "UK" as the current country code is "EN"
 

16.Mar.2025 - 15:27:28 tvgName: EN - Bigfoot Famous  (2021)
16.Mar.2025 - 15:27:28 groupTitle: |EN| MOVIES 2018-2021
16.Mar.2025 - 15:27:28 channelName: EN - Bigfoot Famous  (2021)
16.Mar.2025 - 15:27:28 logoUrl: https://image.tmdb.org/t/p/w600_and_h900_bestv2/141Mj7agibo9jmbpKqw3tHppIoa.jpg
16.Mar.2025 - 15:27:28 Keeping [channelName] [36296]: EN - Bigfoot Famous  (2021) :Filtered by: 'EN '
16.Mar.2025 - 15:27:28 Detected and removed country code: Modified string is 'Bigfoot Famous (2021)'
16.Mar.2025 - 15:27:28 Sanitized Channelname: Bigfoot Famous (2021)
16.Mar.2025 - 15:27:28 Detected and removed country code: Modified string is 'MOVIES 2018-2021'
16.Mar.2025 - 15:27:28 Type: Movies - Detected Movie file extension: .mp4
16.Mar.2025 - 15:27:28 Detected and removed country code: Modified string is 'Bigfoot Famous (2021)'
16.Mar.2025 - 15:27:28 Adding movie: Bigfoot Famous (2021)
16.Mar.2025 - 15:27:28 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
16.Mar.2025 - 15:27:28 Item [72590] Adding to Folder: D:\VODS\Movies\Bigfoot Famous (2021)

@gillmacca01

The VODs are populating correctly here as far as I can tell , with just include and ignore words

VODtoSTRMscheduledTask.dll

gillmacca01
Posted
3 minutes ago, mickle026 said:

So here's where I am at,

I have corrected detection when Check URL is not selected
I have corrected remove country codes - wondering if I should add "UK" as the current country code is "EN"
 

16.Mar.2025 - 15:27:28 tvgName: EN - Bigfoot Famous  (2021)
16.Mar.2025 - 15:27:28 groupTitle: |EN| MOVIES 2018-2021
16.Mar.2025 - 15:27:28 channelName: EN - Bigfoot Famous  (2021)
16.Mar.2025 - 15:27:28 logoUrl: https://image.tmdb.org/t/p/w600_and_h900_bestv2/141Mj7agibo9jmbpKqw3tHppIoa.jpg
16.Mar.2025 - 15:27:28 Keeping [channelName] [36296]: EN - Bigfoot Famous  (2021) :Filtered by: 'EN '
16.Mar.2025 - 15:27:28 Detected and removed country code: Modified string is 'Bigfoot Famous (2021)'
16.Mar.2025 - 15:27:28 Sanitized Channelname: Bigfoot Famous (2021)
16.Mar.2025 - 15:27:28 Detected and removed country code: Modified string is 'MOVIES 2018-2021'
16.Mar.2025 - 15:27:28 Type: Movies - Detected Movie file extension: .mp4
16.Mar.2025 - 15:27:28 Detected and removed country code: Modified string is 'Bigfoot Famous (2021)'
16.Mar.2025 - 15:27:28 Adding movie: Bigfoot Famous (2021)
16.Mar.2025 - 15:27:28 groupTitle Folder omitted due to IgnoreGroupTitleFolder setting.
16.Mar.2025 - 15:27:28 Item [72590] Adding to Folder: D:\VODS\Movies\Bigfoot Famous (2021)

@gillmacca01

The VODs are populating correctly here as far as I can tell , with just include and ignore words

VODtoSTRMscheduledTask.dll 677 kB · 0 downloads

Running it now

gillmacca01
Posted (edited)

This is frustrating. Run newest dll, and still no change my end. Output files still have EN, and still missing aload of movies.

Did you want me to run with logging and send you the logs - if so, which log settings do you want me to use?

I can see one of the missing VODs in the created movie.m3u, but not in the VOD folder. The m3u file hasn't been updated since 01:30 this morning

Edited by gillmacca01
mickle026
Posted

what is bothering me is - why?

I know they is at least 1 misdetection, but I am getting like this, whilst yours seem to be behaving like you never even replaced the dll.
I think I am going to log the build number in the log so you can at least tell, if its windows or the plugin behaving badly

image.png.598f59b75b863c565c3623178fa81f10.png

fbrassin
Posted

As also the latest version is not writing output, i tried to reboot server (ubuntu)

Run plugin but had this error, and nothing has been written in the output folder

 

16.mar.2025 - 17:04:57 logoUrl: http://locandine.ddns.net:25461/images/redtraffic/21783.jpg
16.mar.2025 - 17:04:57 Ignoring [groupTitle] [66052]: XXX College :Filtered by: 'XXX'
16.mar.2025 - 17:04:57 tvgName: Daredorm - Halloween Party
16.mar.2025 - 17:04:57 groupTitle: XXX College
16.mar.2025 - 17:04:57 channelName: Daredorm - Halloween Party
16.mar.2025 - 17:04:57 logoUrl: locandine.ddns.net:25461/images/adultiptv/22734.jpg
16.mar.2025 - 17:04:57 Ignoring [groupTitle] [66053]: XXX College :Filtered by: 'XXX'
16.mar.2025 - 17:04:57 Exception occurred: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at VODtoSTRMscheduledTask.STRMTOVOD.scanM3UFileAsync(String inputFilePath, String outputDirectory, String currentlog)
16.mar.2025 - 17:04:57 -----------------------[ Updating Output Folder ]-------------------------------
16.mar.2025 - 17:04:57 Updating OutputFolder (Creating/Deleting strms & folders)
16.mar.2025 - 17:04:57 Config: Write LiveTV VOD: False  Write Movie VOD: True  Write TV Show VODS: True
16.mar.2025 - 17:04:57 Finished this import.
16.mar.2025 - 17:04:57 Task Ended at: 16/03/2025 17:04:57
16.mar.2025 - 17:04:57 Task Duration: 00:00:29.07
16.mar.2025 - 17:04:57 No Input File 2
16.mar.2025 - 17:04:57 No Input File 3

 

mickle026
Posted
4 minutes ago, fbrassin said:

As also the latest version is not writing output, i tried to reboot server (ubuntu)

Run plugin but had this error, and nothing has been written in the output folder

 

16.mar.2025 - 17:04:57 logoUrl: http://locandine.ddns.net:25461/images/redtraffic/21783.jpg
16.mar.2025 - 17:04:57 Ignoring [groupTitle] [66052]: XXX College :Filtered by: 'XXX'
16.mar.2025 - 17:04:57 tvgName: Daredorm - Halloween Party
16.mar.2025 - 17:04:57 groupTitle: XXX College
16.mar.2025 - 17:04:57 channelName: Daredorm - Halloween Party
16.mar.2025 - 17:04:57 logoUrl: locandine.ddns.net:25461/images/adultiptv/22734.jpg
16.mar.2025 - 17:04:57 Ignoring [groupTitle] [66053]: XXX College :Filtered by: 'XXX'
16.mar.2025 - 17:04:57 Exception occurred: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at VODtoSTRMscheduledTask.STRMTOVOD.scanM3UFileAsync(String inputFilePath, String outputDirectory, String currentlog)
16.mar.2025 - 17:04:57 -----------------------[ Updating Output Folder ]-------------------------------
16.mar.2025 - 17:04:57 Updating OutputFolder (Creating/Deleting strms & folders)
16.mar.2025 - 17:04:57 Config: Write LiveTV VOD: False  Write Movie VOD: True  Write TV Show VODS: True
16.mar.2025 - 17:04:57 Finished this import.
16.mar.2025 - 17:04:57 Task Ended at: 16/03/2025 17:04:57
16.mar.2025 - 17:04:57 Task Duration: 00:00:29.07
16.mar.2025 - 17:04:57 No Input File 2
16.mar.2025 - 17:04:57 No Input File 3

 

what field is you ignore "xxx" in?  contains or startswith?

mickle026
Posted

This one just has additional logging it logs the build number in the top of the log
There is some more in verbose mode

 

16.Mar.2025 - 16:30:29 CreateMovieStrmsFromM3UTaskStarter method triggered.
16.Mar.2025 - 16:30:29 Inside Task.Run.
16.Mar.2025 - 16:30:29 Create Movie strm files From M3U
16.Mar.2025 - 16:30:29 Build Version: 1.0.0.105
16.Mar.2025 - 16:30:31 CPU Cores: 8: Logical Processors (Max Threads): 16, Hyperthreading: True
16.Mar.2025 - 16:30:31 Task Started at: 16/03/2025 16:30:31


I have a GUT feeling that even though Emby has restarted in SOME cases, it is just going through the motion, and not really restarting..... and I have this feeling that its the "embytray" that sometimes causes this..   Its just a GUT feeling at the moment, but you should be able to tell if the next run after dll update has the same build number or not.

VODtoSTRMscheduledTask.dll

gillmacca01
Posted

That's a possibility, but when you say 'Emby tray', are you referring to Windows service. I am running Emby on a NAS

Posted

I haven't updated from og 99 this morning but I've got tv shows and movies! (sorry again for using the wrong m3u) 

Now I'll have to do some comparisons to see what is missing if any and same I need to remove "EN - " from the titles. Going to update to the newest DLL, rip and run!

fbrassin
Posted
30 minutes ago, mickle026 said:

what field is you ignore "xxx" in?  contains or startswith?

I'd like to ignore all group-title beginning for XXX

sundevil67
Posted

I've been wanting to accomplish this for many years, and wasted a ton of time on failed attempts with random Python scripts & whatever I could find since that website with the M3U uploader went down. Now that I am running Emby on a worthy computer, and there's all this activity & interest in this, AND the native apps compatible with this provider have gotten really awful... I really want to try again.. but also want to make sure I'm not downloading/testing outdated files. This is why I've been waffling & whining publicly about my hesitation to try again.

Now that I've seen all of this activity & interest, I have a little hope I may actually be able to one day be able to use Emby exclusively & get rid of the increasingly awful native apps that work with this provider. All of this effort & activity has given me some (a little) hope I may So thank you @mickle026for all of your efforts...Emby would be far less useful without contributions like yours. 

I believe I've downloaded the latest DLL, and copied the most recent regex, but am having trouble finding the latest VODtoSTRMscheduledTask.xml file & all of the requirements by digging through this thread...I haven't found anything here - is there anyplace I can jump to that has all of the latest downloads, requirements, etc., or is it all happening in here, and I need to read it from page #1?

 

regex.txt VODtoSTRMscheduledTask.dll

fbrassin
Posted (edited)
14 minutes ago, mickle026 said:

This one just has additional logging it logs the build number in the top of the log
There is some more in verbose mode

 

16.Mar.2025 - 16:30:29 CreateMovieStrmsFromM3UTaskStarter method triggered.
16.Mar.2025 - 16:30:29 Inside Task.Run.
16.Mar.2025 - 16:30:29 Create Movie strm files From M3U
16.Mar.2025 - 16:30:29 Build Version: 1.0.0.105
16.Mar.2025 - 16:30:31 CPU Cores: 8: Logical Processors (Max Threads): 16, Hyperthreading: True
16.Mar.2025 - 16:30:31 Task Started at: 16/03/2025 16:30:31


I have a GUT feeling that even though Emby has restarted in SOME cases, it is just going through the motion, and not really restarting..... and I have this feeling that its the "embytray" that sometimes causes this..   Its just a GUT feeling at the moment, but you should be able to tell if the next run after dll update has the same build number or not.

VODtoSTRMscheduledTask.dll 679.5 kB · 0 downloads

After restart emby on ubuntu latest version is 

16.mar.2025 - 17:47:37 Create Movie strm files From M3U
16.mar.2025 - 17:47:37 Build Version: 1.0.0.105
16.mar.2025 - 17:47:37 CPU Cores: 2: Logical Processors (Max Threads): 4, Hyperthreading: True
16.mar.2025 - 17:47:37 Task Started at: 16/03/2025 17:47:37
16.mar.2025 - 17:47:37 -----------------------------------------------------------------------
16.mar.2025 - 17:47:37 Create Movie Stream Files From M3U Scheduled Task Triggered.
16.mar.2025 - 17:47:37 -----------------------------------------------------------------------
16.mar.2025 - 17:47:37 Input File 1: /tmp/list.m3u
16.mar.2025 - 17:47:37 -----------------------[ Scanning Current Folders ]----------------------------
16.mar.2025 - 17:47:37 Scanning Output Directory for content: /media/S3/m3u.

 

Edited by fbrassin
fbrassin
Posted

No way.

It is writing anything in output folder

16.mar.2025 - 17:50:43 Checking [Ignore] Contains
16.mar.2025 - 17:50:43 Checking [Ignore] StartsWith
16.mar.2025 - 17:50:43 -----------------------[ Updating Output Folder ]-------------------------------
16.mar.2025 - 17:50:43 Updating OutputFolder (Creating/Deleting strms & folders)
16.mar.2025 - 17:50:43 Config: Write LiveTV VOD: False  Write Movie VOD: True  Write TV Show VODS: True
16.mar.2025 - 17:50:44 Finished this import.
16.mar.2025 - 17:50:44 Task Ended at: 16/03/2025 17:50:44
16.mar.2025 - 17:50:44 Task Duration: 00:03:06.60
16.mar.2025 - 17:50:44 No Input File 2
16.mar.2025 - 17:50:44 No Input File 3

 

gillmacca01
Posted

image.thumb.png.9be88de2449e7ebef8de856ccc9bc1e6.png

gillmacca01
Posted
4 minutes ago, gillmacca01 said:

image.thumb.png.9be88de2449e7ebef8de856ccc9bc1e6.png

No change

I will send you the verbose log once finished...may contain some clues

mickle026
Posted

Yes please

I feel like i am looking for a needle in a haystack, but on the upside, narrowing down where its going wrong can only lead to improvements

gillmacca01
Posted
Just now, mickle026 said:

Yes please

I feel like i am looking for a needle in a haystack, but on the upside, narrowing down where its going wrong can only lead to improvements

Sent

Posted
16 minutes ago, sundevil67 said:

I've been wanting to accomplish this for many years, and wasted a ton of time on failed attempts with random Python scripts & whatever I could find since that website with the M3U uploader went down. Now that I am running Emby on a worthy computer, and there's all this activity & interest in this, AND the native apps compatible with this provider have gotten really awful... I really want to try again.. but also want to make sure I'm not downloading/testing outdated files. This is why I've been waffling & whining publicly about my hesitation to try again.

Now that I've seen all of this activity & interest, I have a little hope I may actually be able to one day be able to use Emby exclusively & get rid of the increasingly awful native apps that work with this provider. All of this effort & activity has given me some (a little) hope I may So thank you @mickle026for all of your efforts...Emby would be far less useful without contributions like yours. 

I believe I've downloaded the latest DLL, and copied the most recent regex, but am having trouble finding the latest VODtoSTRMscheduledTask.xml file & all of the requirements by digging through this thread...I haven't found anything here - is there anyplace I can jump to that has all of the latest downloads, requirements, etc., or is it all happening in here, and I need to read it from page #1?

 

regex.txt 575 B · 1 download VODtoSTRMscheduledTask.dll 677 kB · 0 downloads

We haven't been using VODtoSTRMscheduledTask.xml.... Is that the other plugin that hasn't been updated?

 

Screen Shot 2025-03-16 at 1.06.57 PM.png

Screen Shot 2025-03-16 at 1.05.45 PM.png

mickle026
Posted

@gillmacca01

The log has only done stage 1, scanning the content already on the drive.

There is more to do, it has to process the m3u and categorise everything then write the output files

The end of the log tells you it has finished

For your m3u a full verbose log is nearly 1gb, its huge... (and probably split into parts)

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

@gillmacca01

The log has only done stage 1, scanning the content already on the drive.

There is more to do, it has to process the m3u and categorise everything then write the output files

The end of the log tells you it has finished

For your m3u a full verbose log is nearly 1gb, its huge... (and probably split into parts)

Sorry for the confusion. I thought because the scheduled task said it was finished, that it was done. Didn't realise it hadn't actually finished 

Not sure how I'm going to send you that file

Edited by gillmacca01

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