Jump to content

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


Recommended Posts

mickle026
Posted

The second build etc may not work, I just had a new pc and everything built on there is not loading.  Something wrong with the netcore, I have to reinstall it.  The first build will be ok.

Bear with me....

BigIrn
Posted (edited)
14 hours ago, mickle026 said:

Not sure, but with the log saying no input files I have to ask, did you click save settings before triggering it?

Without saving settings in the web user interface, the server backend has no information written to the settings file to read from in order to do the task.

 

I did. I used my curated m3u with just VOD and I used the original m3u raw. I have an iPad and both VOD work in IPTV - watch online app. I’ll try and move the file around to see if it’s a read/write issue and that is why it can’t see the m3u. I have a win 11 laptop I can try tomorrow as long as the license isn’t 1 instance. 

Edited by BigIrn
BigIrn
Posted

mickle026 just want to thank you for taking this on! I know we are sending you issues but I’m sure I speak on behalf of users this is going to be awesome! I’ve tried a Python script and either I have the wrong version or a variable is not set correctly. I have no way of contacting the author. Maybe put this in GitHub so we can help with testing/qa? Thanks again!

  • Agree 3
mickle026
Posted (edited)

updated build in post 1 -

Was my Error, built nestandard2 app instead of netcore2 app - sorted now :) 

 

VOD  inclusion words are not saving, i will investigate

Edited by mickle026
BigIrn
Posted

Ok I have my windows 11 laptop running Emby server and C:\VOD with the raw m3u in the folder. Which DLL should I use?

BigIrn
Posted

It got further this time but still didn't work. This is on windows 11.

28.Feb.2025 - 13:08:13 -----------------------[ Scanning Current Folders ]----------------------------
28.Feb.2025 - 13:08:13 directoryCount: Found 1 Folders in Output path.
28.Feb.2025 - 13:08:13 -------------------------------------------------------------------------
28.Feb.2025 - 13:08:13 Item [1] Storing internal ScannedFolderContent list: C:\VOD\m3u\m3u.strm.
28.Feb.2025 - 13:08:13 Item [1] Storing internal ScannedFolderContent list: C:\VOD\m3u\Poster.jpg.
28.Feb.2025 - 13:08:13 ----------------------[ Reading M3U File Contents ]----------------------------
28.Feb.2025 - 13:08:13 --------------------------------------------------------------------------------
28.Feb.2025 - 13:08:13 Checking to see if input path is an URL.
28.Feb.2025 - 13:08:13 -----------------------------------------------------------------------
28.Feb.2025 - 13:08:14 Create Movie Stream Files From M3U Scheduled Task Triggered.
28.Feb.2025 - 13:08:14 -----------------------------------------------------------------------
28.Feb.2025 - 13:08:14 -----------------------[ Scanning Current Folders ]----------------------------
28.Feb.2025 - 13:08:14 directoryCount: Found 1 Folders in Output path.
28.Feb.2025 - 13:08:14 -------------------------------------------------------------------------
28.Feb.2025 - 13:08:14 Item [1] Storing internal ScannedFolderContent list: C:\VOD\m3u\m3u.strm.
28.Feb.2025 - 13:08:14 Item [1] Storing internal ScannedFolderContent list: C:\VOD\m3u\Poster.jpg.
28.Feb.2025 - 13:08:14 ----------------------[ Reading M3U File Contents ]----------------------------
28.Feb.2025 - 13:08:14 --------------------------------------------------------------------------------
28.Feb.2025 - 13:08:14 Checking to see if input path is an URL.
28.Feb.2025 - 13:08:15 Reading input file.....
28.Feb.2025 - 13:08:16 Saved 'C:\VOD\m3u\LiveTV\LiveTV.m3u'
28.Feb.2025 - 13:08:16 Saved 'C:\VOD\m3u\Movies\Movies.m3u'
28.Feb.2025 - 13:08:16 Saved 'C:\VOD\m3u\TV Shows\TV Shows.m3u'
28.Feb.2025 - 13:08:16 DEBUG: Returned contentsList
28.Feb.2025 - 13:08:16 The output directory is empty.
28.Feb.2025 - 13:08:16 -----------------------[ Updating Output Folder ]-------------------------------
28.Feb.2025 - 13:08:16 --------------------------------------------------------------------------------
28.Feb.2025 - 13:08:16 Finished this import.
28.Feb.2025 - 13:08:16 No Input File 2
28.Feb.2025 - 13:08:16 No Input File 3
28.Feb.2025 - 13:08:16 Reading input file.....
28.Feb.2025 - 13:08:16 Saved 'C:\VOD\m3u\LiveTV\LiveTV.m3u'
28.Feb.2025 - 13:08:16 Saved 'C:\VOD\m3u\Movies\Movies.m3u'
28.Feb.2025 - 13:08:16 Saved 'C:\VOD\m3u\TV Shows\TV Shows.m3u'
28.Feb.2025 - 13:08:16 DEBUG: Returned contentsList
28.Feb.2025 - 13:08:16 The output directory is empty.
28.Feb.2025 - 13:08:16 -----------------------[ Updating Output Folder ]-------------------------------
28.Feb.2025 - 13:08:16 --------------------------------------------------------------------------------
28.Feb.2025 - 13:08:16 Finished this import.
28.Feb.2025 - 13:08:16 No Input File 2
28.Feb.2025 - 13:08:16 No Input File 3

ScheduledTask-[M3UToStrm]28.Feb.2025 - 13.08.13.txt

BigIrn
Posted

The split Live TV/Movies/TV Shows m3u files it created are empty.

gillmacca01
Posted

There are 2 files in the first post.

Which one should we be installing?

BigIrn
Posted

The results I posted earlier where it ran more than my mac used the original dll. These are the results of using the newest dll.

28.Feb.2025 - 14:16:15 -----------------------------------------------------------------------
28.Feb.2025 - 14:16:15 -----------------------------------------------------------------------
28.Feb.2025 - 14:16:15 Create Movie Stream Files From M3U Scheduled Task Triggered.
28.Feb.2025 - 14:16:15 -----------------------------------------------------------------------
28.Feb.2025 - 14:16:15 No Input Files - Aborting Import .m3u stage
28.Feb.2025 - 14:16:15 Create Movie Stream Files From M3U Scheduled Task Triggered.
28.Feb.2025 - 14:16:15 -----------------------------------------------------------------------
28.Feb.2025 - 14:16:15 No Input Files - Aborting Import .m3u stage
mickle026
Posted

I am looking into it

I have a few issues to address.

1st is my new pc is building empty dll's.  Something to do with win 11 and unc.  I have to figure that out.
2nd is saving is not saving but reloading, although theres nothing in the code thats obvious, I have that to figure out.

Please be patient my new pc is giving me more headaches that i wished for ........ its much faster but misbehaving ...

  • Agree 1
mickle026
Posted

uploaded a new build to post 1,

Fixed file input error, "no input files"

gillmacca01
Posted

Still not accepting a url.

Accepts a Downloaded file, but the m3u files are still empty.

I'm presuming i should be selecting the first dll in the first post, not the second one?

ScheduledTask-[M3UToStrm]01.Mar.2025 - 19.24.08.txt

mickle026
Posted

no the second one is newest (todays date)

However the url validation check is the same in both, the plugin checks if its an url, if so downloads it, if not tries to load a local file

is your url a valid http or https ? if not then i need to know the schema (not your url, but how it is formed) to add it in to the check
 

        public static async Task<bool> ValidateUrl(string url, int timeoutSeconds = 10, string currentlog="")
        {
            var log = new FileLogging();

            if (Uri.TryCreate(url, UriKind.Absolute, out Uri validatedUri))
            {
                if (validatedUri.Scheme == Uri.UriSchemeHttp || validatedUri.Scheme == Uri.UriSchemeHttps)
                {
                    using (HttpClient client = new HttpClient())
                    {
                        client.Timeout = TimeSpan.FromSeconds(timeoutSeconds);
                        try
                        {
                            HttpResponseMessage response = await client.GetAsync(url);
                            log.LogToMyFile(currentlog, DateTime.Now.ToString("dd.MMM.yyy - HH':'mm':'ss") + $" Response Code {response.IsSuccessStatusCode.ToString()}");
                            return response.IsSuccessStatusCode;
                        }
                        catch (TaskCanceledException)
                        {
                            Console.WriteLine("The request timed out.");
                            log.LogToMyFile(currentlog, DateTime.Now.ToString("dd.MMM.yyy - HH':'mm':'ss") + $" The request timed out.");
                            return false;
                        }
                        catch (Exception ex)
                        {
                            Console.WriteLine($"An error occurred: {ex.Message}");
                            log.LogToMyFile(currentlog, DateTime.Now.ToString("dd.MMM.yyy - HH':'mm':'ss") + $" An error occurred: {ex.Message}");
                            return false;
                        }
                    }
                }
            }

            return false;
        }

 

gillmacca01
Posted

I will give the second one a go shortly, in the meantime, my url is

http://line.****.me/get.php?username=*****&password=******&type=m3u_plus&output=ts

mickle026
Posted
6 minutes ago, gillmacca01 said:

I will give the second one a go shortly, in the meantime, my url is

http://line.****.me/get.php?username=*****&password=******&type=m3u_plus&output=ts

That should pass the http:// validity check , but the logs indicate that it tried to load a local file, maybe I need to alter the timeout??

Try this one with a 2 minute timeout at the url check and some more logging added to try and catch what is happening

VODtoSTRMscheduledTask.dll

  • Like 1
gillmacca01
Posted

Sorry, I'm tried with a url then tried with a Downloaded file. The logs were from the latter.

I will supply logs for url if it doesn't work

gillmacca01
Posted

Would you like me to DM you a copy of the m3u file. May help even more to see what is going on?

mickle026
Posted

It would help, at the current moment I have no idea why your http link is failing to be recognised either

gillmacca01
Posted
4 minutes ago, mickle026 said:

It would help, at the current moment I have no idea why your http link is failing to be recognised either

Message sent

gillmacca01
Posted
4 minutes ago, gillmacca01 said:

Message sent

Just sent you screenshots of my settings, incase I have set it wrong

mickle026
Posted

Got everything.  I will look into it and get it all working asap.

BigIrn
Posted

I’m going to try the new DLL soon as I get to my office. How long should the task run usually?

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