Jump to content

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


Recommended Posts

gillmacca01
Posted

 

This is just 2 examples, but there are many more - I'm wondering if I have configured them wrong

image.thumb.png.35188feeeab8e225d34ab925f8ed4b02.png

 

image.png.109892a89fdadfee6c5211fbf461a1ef.png

gillmacca01
Posted (edited)

Also while I am causing you a headache, is there a way to ignore items that are not in a group. Latest m3u has a lot of content that are not in groups and I am not interested in them. example: group-title="",EN - Two Word Blending Letter O   Learn to Read, Beginning Reader, Pre-Reader Phonics Lesson

Edited by gillmacca01
Posted

Ok I created a new folder on my C drive "Streaming" instead of "VOD". If this doesn't work maybe I need to move the download folder into a user folder (r/w issues?) I have 13gb free space on win11. Is that an issue?

Posted (edited)

EDIT: I can't spell disregard. I had the m3u in the wrong folder.

 

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

I still have no idea why your system is crashing.

 

You have a heck of a lot of sql errors
2025-03-20 18:01:34.915 Info App: Sqlite: 787 - abort at 26 in [insert into AncestorIds2 (ItemId, AncestorId, Distance) values (1205,1205,0)]: FOREIGN KEY constraint failed

 

Do you have your VOD folder monitored by emby ?

If you do can you check, outputting to one that is not, and see if you get the issue?  - I am starting to wonder if something in the output is not interpreted properly by Emby and causing this.

Thanks @mickle026for splitting up the logs. It's running now and here is the log fron the start

 

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

 

This is just 2 examples, but there are many more - I'm wondering if I have configured them wrong

image.thumb.png.35188feeeab8e225d34ab925f8ed4b02.png

 

image.png.109892a89fdadfee6c5211fbf461a1ef.png

I will look at why the "contains" are not being honoured, I doubt i will get time today, and I am working a double back-to-back shift so it might be as late as Monday before I get to this..

I can add an option to ignore items not in groups if you wish.  Some m3u suppliers don't use grouping at all, so an option here like a checkbox would be best
Example: #EXTINF:-1,IN-MM - King of Kotha (2023)
There is nothing but the channel/movie name

Edited by mickle026
  • Like 1
gillmacca01
Posted

No problem. I am working away again next week, so wouldn't be able to test till Friday, unless you release a version of the plugin that can be updated from within Emby

Posted

Still the same. 1916 Movies 3255 Movies

21.Mar.2025 - 10:59:42 Build Version: 1.0.0.120
21.Mar.2025 - 10:59:42 Avaliable Memory: 4.00 GB
21.Mar.2025 - 10:59:44 CPU Cores: 2: Logical Processors (Max Threads): 4, Hyperthreading: True
21.Mar.2025 - 10:59:44 Using max 4 threads
21.Mar.2025 - 10:59:44 Ignore [Contains]:
21.Mar.2025 - 10:59:44 Ignore [StartsWith]: 4K,AF -,AF|,AJ -,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 -,WIT-,XU -,XU|,###,(DE),(FR),(GR),(IR),(KR),(RU),(TR),FOR ADULTS,XXX,XXL

21.Mar.2025 - 10:59:44 Include [Contains]:
21.Mar.2025 - 10:59:44 Include [StartsWith]: EN ,EN -,EN|,US ,US|
21.Mar.2025 - 10:59:44 Task Started at: 3/21/2025 10:59:44 AM
21.Mar.2025 - 10:59:44 -----------------------------------------------------------------------
21.Mar.2025 - 10:59:44 Create Movie Stream Files From M3U Scheduled Task Triggered.
21.Mar.2025 - 10:59:44 -----------------------------------------------------------------------
21.Mar.2025 - 10:59:44 Input File 1: C:\Streaming\M3U\tv_channels_b3e6755ebfe2.m3u
21.Mar.2025 - 10:59:44 Loading M3U file.
21.Mar.2025 - 10:59:44 Reading local file: C:\Streaming\M3U\tv_channels_b3e6755ebfe2.m3u
21.Mar.2025 - 10:59:44 Loading m3u File Total execution time: 0 ms
21.Mar.2025 - 10:59:45 No Input File 2
21.Mar.2025 - 10:59:45 No Input File 3
21.Mar.2025 - 10:59:45 Total Input Files: 1
21.Mar.2025 - 10:59:45 Total m3u Items: 1112414

ScheduledTask-[M3UToStrm]21.Mar.2025 - 10.59.42.txt FileWriteDebugLogging [M3UToStrm]21.Mar.2025.txt

gillmacca01
Posted

No rush for this at the moment, but I am still seeing some movies identified as tv shows and I can see a pattern - I'm sure you'll see it in the 2 screenshot (i currently have 6 mis-identified)

 

Screenshot_20250321_184606_Emby.jpg

Screenshot_20250321_184555_Emby.jpg

mickle026
Posted
10 minutes ago, gillmacca01 said:

No rush for this at the moment, but I am still seeing some movies identified as tv shows and I can see a pattern - I'm sure you'll see it in the 2 screenshot (i currently have 6 mis-identified)

 

Screenshot_20250321_184606_Emby.jpg

Screenshot_20250321_184555_Emby.jpg

Yes it's a date pattern picked up as season/ episode.

I can fix this.

Posted (edited)
6 hours ago, mickle026 said:

I still have no idea why your system is crashing.

 

You have a heck of a lot of sql errors
2025-03-20 18:01:34.915 Info App: Sqlite: 787 - abort at 26 in [insert into AncestorIds2 (ItemId, AncestorId, Distance) values (1205,1205,0)]: FOREIGN KEY constraint failed

 

Do you have your VOD folder monitored by emby ?

If you do can you check, outputting to one that is not, and see if you get the issue?  - I am starting to wonder if something in the output is not interpreted properly by Emby and causing this.

words are hard

Edited by BigIrn
gillmacca01
Posted

Quick question. In the override fields, do I need to enter the group name from the downloaded m3u or the name of the folder created by the plugin?

mickle026
Posted
13 minutes ago, gillmacca01 said:

Quick question. In the override fields, do I need to enter the group name from the downloaded m3u or the name of the folder created by the plugin?

from the m3u, the folders are renamed after the m3u is parsed.  Ignore happens during the parsing of the m3u.

  • Thanks 1
mickle026
Posted (edited)

@gillmacca01I ran through your newest m3u with the |EN| TURKISH SERIES in it using the ignore words contains "TURKISH" and it WAS ignored, I'm off back to work on the second part of my double shift in a minute so I will run it with "TURKISH SERIES" and check back later just to see if there may be a problem with words containing spaces , there shouldn't be but I will check..

Second **FILTER** entry.
1st was kept because it had EN
2nd was ignored (removed) because it had TURKISH

as per your other question, from below you can see group title retains the |EN| and channelname/Moviename has the | removed before the ignore phase (this needs clarification in the plugin page)

 

The log entries are out of order too, the Checking {Ignore] contains is requested to written to the log before **FILTER** Ignoring ...
 

21.Mar.2025 - 17:34:09 tvgName: EN - Uzak Sehir - Far Away (2024) S01 E01
21.Mar.2025 - 17:34:09 groupTitle: |EN| TURKISH SERIES SUB
21.Mar.2025 - 17:34:09 channelName: EN - Uzak Sehir - Far Away (2024) S01 E01
21.Mar.2025 - 17:34:09 logoUrl: https://image.tmdb.org/t/p/w185/bEjz0Qyyc07ydF7nWdJMX98R8Ev.jpg
21.Mar.2025 - 17:34:09 Checking [Include] Contains
21.Mar.2025 - 17:34:09 Checking [Include] StartsWith
21.Mar.2025 - 17:34:09 **FILTER** Keeping [channelName] [161770]: EN - Uzak Sehir - Far Away (2024) S01 E01 :Filtered by: 'EN '
21.Mar.2025 - 17:34:09 Checking [Include] StartsWith, Include: True
21.Mar.2025 - 17:34:09 **FILTER** Ignoring [groupTitle] [161770]: |EN| TURKISH SERIES SUB :Filtered by: 'TURKISH'
21.Mar.2025 - 17:34:09 Checking [Ignore] Contains
21.Mar.2025 - 17:34:09 tvgName: EN - Uzak Sehir - Far Away (2024) S01 E02
21.Mar.2025 - 17:34:09 groupTitle: |EN| TURKISH SERIES SUB
21.Mar.2025 - 17:34:09 channelName: EN - Uzak Sehir - Far Away (2024) S01 E02
21.Mar.2025 - 17:34:09 logoUrl: https://image.tmdb.org/t/p/w185/bVjQa9ZJPwXVwzyXKJ2upKUYRRP.jpg

 

Edited by mickle026
gillmacca01
Posted

I used ignore Turkish series because I didn't want the possibility that there is a movie that contains Turkish

mickle026
Posted
32 minutes ago, gillmacca01 said:

I used ignore Turkish series because I didn't want the possibility that there is a movie that contains Turkish

It is ignored here, and not in the VOD folder either ....

 

22.Mar.2025 - 11:56:03 tvgName: EN - Uzak Sehir - Far Away (2024) S01 E01
22.Mar.2025 - 11:56:03 groupTitle: |EN| TURKISH SERIES SUB
22.Mar.2025 - 11:56:03 channelName: EN - Uzak Sehir - Far Away (2024) S01 E01
22.Mar.2025 - 11:56:03 logoUrl: https://image.tmdb.org/t/p/w185/bEjz0Qyyc07ydF7nWdJMX98R8Ev.jpg
22.Mar.2025 - 11:56:03 Checking [Include] Contains
22.Mar.2025 - 11:56:03 Checking [Include] StartsWith
22.Mar.2025 - 11:56:03 **FILTER** Keeping [channelName] [161797]: EN - Uzak Sehir - Far Away (2024) S01 E01 :Filtered by: 'EN '
22.Mar.2025 - 11:56:03 Checking [Include] StartsWith, Include: True
22.Mar.2025 - 11:56:03 **FILTER** Ignoring [groupTitle] [161797]: |EN| TURKISH SERIES SUB :Filtered by: 'TURKISH SERIES'

gillmacca01
Posted

So the question is, why it's not ignoring for me?

 

mickle026
Posted
53 minutes ago, gillmacca01 said:

So the question is, why it's not ignoring for me?

 

The only difference I can see at the moment is you haven't removed language codes in the output, but that should not matter as that is done later.

That should not be the reason.

I can't check right now, just arrived back at work ☹️

 

gillmacca01
Posted
6 minutes ago, mickle026 said:

The only difference I can see at the moment is you haven't removed language codes in the output, but that should not matter as that is done later.

That should not be the reason.

I can't check right now, just arrived back at work ☹️

 

No problem. I'm now running it with verbose logging on my laptop to see what happens. I have deleted the previous m3u's and vod files, so it will be a fresh download 

gillmacca01
Posted

I believe I have fixed it, but not sure why it's fixed.

I've just re-run it (after trying several times with the files not be ignored), and the only difference is, I have ticked 'Clean Up/remove and residual empty output folders ' option.

The folders had strm's in them, but this time they have been removed - maybe I misunderstood what the option is suppose to do

gillmacca01
Posted (edited)

AAARRRGGHHH. Solve one problem, and another one appears (although it may have already been there, but I was looking at others stuff)

I have a folder created called 'EN CHILDRENFAMILY'. m3u calls the folder |EN| CHILDREN/FAMILY

Entered in the override field, but still be detected as tv shows

image.png.893be45ad1c9347b0c185f4029be284f.png

 

image.png.cc468da365fcfcdb78804c7eb1649b3c.png

 

image.thumb.png.85ec3b04819318b96f46033ac94ce728.png

 

image.thumb.png.efbf24d5a2cdfbef96faea3c62a93c31.png

Edited by gillmacca01
mickle026
Posted

Ok the / will be removed because the filesystem can't use it as part of the folder name.

What is the extinf line and does the URL contain "/movie/" ?

If it does have you URL detect on?

gillmacca01
Posted
2 minutes ago, mickle026 said:

Ok the / will be removed because the filesystem can't use it as part of the folder name.

What is the extinf line and does the URL contain "/movie/" ?

If it does have you URL detect on?

#EXTINF:-1 tvg-id="" tvg-name="EN - Book Of Dragons (2011) How To Train Your Dragon" tvg-logo="https://www.themoviedb.org/t/p/original/xgfaG98tsVYodytUkdRA1c4ajtA.jpg" group-title="|EN| CHILDREN/FAMILY",EN - Book Of Dragons (2011) How To Train Your Dragon
http://hidden/movie/hidden/hidden.mp4

URL detect on - did you mean this image.png.2f254caba631bad687bd94bfc7e15982.png

mickle026
Posted (edited)

Yes, if that is on and it detects /movie/ in the URL it will assign it as a move and won't rely on other checks.

Is this failing with this movie?

Edited by mickle026
gillmacca01
Posted

The top level folder is being put under tv shows, but contains 50 movies - i have only added movies to Emby at the moment, so I can easily see which ones are misidentified.

Haven't checked every single one, but they are all under EN children/family

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