Jump to content

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


Recommended Posts

gillmacca01
Posted
5 hours ago, mickle026 said:

Update to 1.0.0.137 and let me know if that has resolved your issues, as I cannot replicate it.

Can't update to that version till Friday (working away), but will report back once done and run

Apotropaic
Posted
2 hours ago, mickle026 said:

Saving the config xml file is obviously not happening.  I cannot replicate here.

can you press F12 to open the browser console and see if there are any errors reported when you click save.

No that's not how that works, that protects titles from being removed like "IT - It (yyyy)", you would put "It (YYYY)" and it would make sure only the first "IT -" was removed and it doesn't become "(YYYY)"

But I will take on board what you are asking and maybe add the ability to do that later after the current issues are resolved.

Thanks for explaining it, I have a lot VOD content that adds these silly tags all over the place so it would be appreciated if you do have the time.

I tried to add the keyword 'test' and save but I can't see anything useful in the console, I can't even find the Country Code field. I did the same thing adding 'xxxxxxx' so it would jump out better but can't see that either. If there's a particular place in the console you want to see just let me know.

image.png.7494242bebd8fc8c9a710b7ba69f972e.pngimage.png.2ece9bb70444bd50aabb0da653206448.png

mickle026
Posted (edited)
8 hours ago, jaspalgill said:

Thanks for explaining it, I have a lot VOD content that adds these silly tags all over the place so it would be appreciated if you do have the time.

I tried to add the keyword 'test' and save but I can't see anything useful in the console, I can't even find the Country Code field. I did the same thing adding 'xxxxxxx' so it would jump out better but can't see that either. If there's a particular place in the console you want to see just let me know.

I think I found the error, sorted it.  
And added a custom string removal function as requested.  This is below the country code box. ( I have NOT tested it to check it works as intended!)

The plugin is now getting way more advanced than originally intended!

 

Screenshot_2-4-2025_51335_localhost.thumb.jpeg.f1670949e9400ae4bd7d62ab5d3cb6e8.jpeg

VODtoSTRMscheduledTask.dll

Edited by mickle026
  • Like 1
Posted

I'm giving this another try on my macbook M1Pro... maybe it works this time

Apotropaic
Posted
On 02/04/2025 at 05:15, mickle026 said:

I think I found the error, sorted it.  
And added a custom string removal function as requested.  This is below the country code box. ( I have NOT tested it to check it works as intended!)

The plugin is now getting way more advanced than originally intended!

 

Screenshot_2-4-2025_51335_localhost.thumb.jpeg.f1670949e9400ae4bd7d62ab5d3cb6e8.jpeg

VODtoSTRMscheduledTask.dll 771 kB · 8 downloads

I’ll give this a test tonight when I get home and feed back. Thanks for your effort here, much appreciated!

Posted
On 01/04/2025 at 22:15, mickle026 said:

I think I found the error, sorted it.  
And added a custom string removal function as requested.  This is below the country code box. ( I have NOT tested it to check it works as intended!)

The plugin is now getting way more advanced than originally intended!

 

Screenshot_2-4-2025_51335_localhost.thumb.jpeg.f1670949e9400ae4bd7d62ab5d3cb6e8.jpeg

VODtoSTRMscheduledTask.dll 771 kB · 8 downloads

I tried it , it worked well on removing the strings on the folders (only) but the same strings remained inside the folder content

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

I tried it , it worked well on removing the strings on the folders (only) but the same strings remained inside the folder content

Try this DLL,

and here is some removal strings that might be useful, you can now download them as a text file, and upload them into the plugin from the text file

1080p,720p,480p,2160p,4K,8K,WEBRip,WEB-DL,BluRay,BRRip,BDRip,HDRip,HDCAM,DVDRip,DVD-SCREENER,H.264,x264,x265,HEVC,DivX,XviD,CAMRip,SD,HD,HQ,AAC,MP3,AC3,DTS,FLAC,TrueHD,Atmos,Dual Audio,Subbed,Dubbed,MULTI,Directors Cut,Extended Edition,Special Edition,Collector's Edition,Ultimate Edition,IMAX,Unrated,UNCUT,Remastered,Re-release,Redux,ENG,HINDI,FRENCH,GERMAN,SPANISH,ITALIAN,JAPANESE,KOREAN,CHINESE,RUSSIAN,PORTUGUESE,NORWEGIAN,SWEDISH,Season,S01E01,Episode,Part 1,Part 2,Pt 3,Prequel,Sequel,Final Chapter,PROPER,REPACK,NEW,REMASTERED,READNFO,FS,WS,STV,Complete,Limited,Official,Sample,Promo,Trailer,Teaser,RARBG,YIFY,EVO,FUM,LOL,ETRG,KiNGDOM,TorrentGalaxy,MKVCage,SPARKS,GalaxyRG,AMZN,NF,HULU,HMAX,WEBRip-AMZN,WEBRip-NF,CAMRip-HQ,PRE,WEB,HDTV,CAM-HD,TVRip,TeleSync

VODtoSTRMscheduledTask.dll

customRemovalStrings.txt

Edited by mickle026
Posted
2 hours ago, mickle026 said:

Try this DLL,

and here is some removal strings that might be useful, you can now download them as a text file, and upload them into the plugin from the text file

1080p,720p,480p,2160p,4K,8K,WEBRip,WEB-DL,BluRay,BRRip,BDRip,HDRip,HDCAM,DVDRip,DVD-SCREENER,H.264,x264,x265,HEVC,DivX,XviD,CAMRip,SD,HD,HQ,AAC,MP3,AC3,DTS,FLAC,TrueHD,Atmos,Dual Audio,Subbed,Dubbed,MULTI,Directors Cut,Extended Edition,Special Edition,Collector's Edition,Ultimate Edition,IMAX,Unrated,UNCUT,Remastered,Re-release,Redux,ENG,HINDI,FRENCH,GERMAN,SPANISH,ITALIAN,JAPANESE,KOREAN,CHINESE,RUSSIAN,PORTUGUESE,NORWEGIAN,SWEDISH,Season,S01E01,Episode,Part 1,Part 2,Pt 3,Prequel,Sequel,Final Chapter,PROPER,REPACK,NEW,REMASTERED,READNFO,FS,WS,STV,Complete,Limited,Official,Sample,Promo,Trailer,Teaser,RARBG,YIFY,EVO,FUM,LOL,ETRG,KiNGDOM,TorrentGalaxy,MKVCage,SPARKS,GalaxyRG,AMZN,NF,HULU,HMAX,WEBRip-AMZN,WEBRip-NF,CAMRip-HQ,PRE,WEB,HDTV,CAM-HD,TVRip,TeleSync

VODtoSTRMscheduledTask.dll 833 kB · 1 download

customRemovalStrings.txt 766 B · 0 downloads

Thank you @mickle026, i am testing the files right now, my output file was like this with a "★" which I want off.
 image.png.4bb98415cb804f590d2e5bc9ef43dda7.png

I will update after the testing.

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

Thank you @mickle026, i am testing the files right now, my output file was like this with a "★" which I want off.
 image.png.4bb98415cb804f590d2e5bc9ef43dda7.png

I will update after the testing.

I have already added that symbol to the country code removal.  "EN ★" or "EN★" (EN is just an example) would get removed with the country codes removal.
However with the addition of string removal, you can add a ★ there also.

Every build has more and more options, its now gone past a simple tool and is rather advanced - LOL 👍

Edited by mickle026
Posted
49 minutes ago, mickle026 said:

I have already added that symbol to the country code removal.  "EN ★" or "EN★" (EN is just an example) would get removed with the country codes removal.
However with the addition of string removal, you can add a ★ there also.

Every build has more and more options, its now gone past a simple tool and is rather advanced - LOL 👍

It's now working perfectly, Well done !!!

mickle026
Posted

I am about finished with this plugin, I have added the ability to call/trigger as script to it after processing

Screenshot_3-4-2025_223440_localhost.thumb.jpeg.25518412990324f7fa42dcf06cad5a3d.jpeg

 

Is there any thing else you guys need before I call it a release version?

v1.0.0.141 is attached

VODtoSTRMscheduledTask.dll

gillmacca01
Posted

I have a cheeky request. Could we have an option to scan our movies/tv shows folders (the ones we have video files in), and if the movie/tv show already exists, do not create a strm

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

I have a cheeky request. Could we have an option to scan our movies/tv shows folders (the ones we have video files in), and if the movie/tv show already exists, do not create a strm

Do you mean an actual library such as containing mp4's and mkv's?

Edit: Ahh hadn't finished writing the post!

So you want an option to put missing content into those folders as strm's?
 

Edited by mickle026
gillmacca01
Posted (edited)
2 minutes ago, mickle026 said:

Do you mean an actual library such as containing mp4's and mkv's?
 

Yes. Don't really want movies/tv shows showing twice (one mkv, one strm)

Edited by gillmacca01
mickle026
Posted
2 minutes ago, gillmacca01 said:

Yes. Don't really want movies/tv shows showing twice (one mkv, one strm)

I am not saying no, but I am going to have to think about it for a while and see if my feeble brain can come up with a solution.
This is not as easy as it sounds, because other peoples setups vary dramatically, some have drives all over the place.

I will look into how easy it would be to get a content list of each type from emby rather than having to scan drives when emby has already done that.

Apotropaic
Posted
56 minutes ago, gillmacca01 said:

I have a cheeky request. Could we have an option to scan our movies/tv shows folders (the ones we have video files in), and if the movie/tv show already exists, do not create a strm

There are some plugins already that will merge together multiple versions of the same movies in different sources, not exactly what you’re after but might be helpful.

I also saw a comment from Luke that said this feature will be part of Emby 4.9 - “Automatically merging movies by Movie Db Id will be a built-in feature in the upcoming Emby Server 4.9 release. Thanks.”

mickle026
Posted


@gillmacca01

*** Ding ! ****

I have an idea :) , it might not be as hard as I first thought.

Try this and see if it works, I cannot check it at the moment (it does movies and TV Show level - currently not Episode level, I still have to Think about that one)


Screenshot_4-4-2025_02210_localhost.jpeg.cc70282022f6ba39cb72e5dc9a76190f.jpeg

VODtoSTRMscheduledTask.dll

 

 

 

gillmacca01
Posted

I'll be back home this afternoon. Will give it a try then

gillmacca01
Posted (edited)

Quick question. If it works, will it also delete a strm, if it detects a video file. Not a problem if it doesn't, I can manually delete those ones

Edited by gillmacca01
gillmacca01
Posted

Your gonna hate me. I've got home early and run the latest dll, and have 2 issues.

In the log I am seeing this error:

04.Apr.2025 - 10:17:01 Exception occurred: System.FormatException: The input string 'unknown_year' was not in a correct format.
   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)
   at System.Int32.Parse(String s)
   at VODtoSTRMscheduledTask.STRMTOVOD.CheckEmbyLibraryAsync(String showTitle, String tvgType, String sanitizedName, String groupTitle, String YearString, String currentLog, FileLogging log, ILibraryManager libraryManager)
   at VODtoSTRMscheduledTask.STRMTOVOD.ProcessContentAsync(String[] lines, Int32 index, String trimmedLine, String url, Metadata metadata, List`1 contentsList, List`1 liveTVList, List`1 moviesList, List`1 tvShowsList, List`1 unknownM3UItemList, String outputDirectory, String currentlog, FileLogging log, PluginConfiguration config)
   at VODtoSTRMscheduledTask.STRMTOVOD.scanM3UFileAsync(String[] lines, String outputDirectory, String currentlog)
04.Apr.2025 - 10:17:01 Unknown M3U Items found: 0.

 

And this is my movie folder now on my QNAP

image.png.49ac492803aca88539e16153f6c4f86c.png

 

This is my movie folder on windows 11 (bare in mind this was with an earlier dll file)

 

image.png.a4b794fac8456647c9940165e5ffd35a.png

gillmacca01
Posted (edited)

Hold fire on this at the moment. Just noticed that the remaining movie folders are empty (movie folder, but no strms) and tv shows are the same. Going to delete the empty folders/group-title, m3u files and re-run it

Edited by gillmacca01
gillmacca01
Posted

Re-run, nothing created. Now going to try with verbose logging on, in case the m3u file is not being downloaded 

gillmacca01
Posted

OK, m3u is being processed, but it looks like it is getting stuck on 'post script trigger path'

I can also see the error for unknown year.

I will dm you the log file

Apotropaic
Posted
13 hours ago, graytinc said:

It's now working perfectly, Well done !!!

Hi, did you test this only with Movies or with TV Shows as well?

It's removing the prefix from TV Shows for me fine but it is isn't placing the season folders into a single TV Show folder like it does for everything else. It's not an issue as Emby handles them fine, just makes the folder layout messy.

mickle026
Posted
1 hour ago, gillmacca01 said:

OK, m3u is being processed, but it looks like it is getting stuck on 'post script trigger path'

I can also see the error for unknown year.

I will dm you the log file

 

2 hours ago, gillmacca01 said:

The input string 'unknown_year' was not in a correct format.

Thanks for pointing this out.

Before adding the Emby Content Query, I wrote the code so that the Year Data contained a text string for creating the Year folders when organising by Year.  This all worked as it should until I added the Emby Content Query, that expects the Year as a numeric string , not an alpha string - I missed that !

I have also added an error trap for the post script trigger

VODtoSTRMscheduledTask.dll

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