Xaque8787 / m3uparser

Parse your m3u VOD list and make a .strm library for media server
10 stars 1 forks source link

IPTV Source #13

Open Jayfl1987 opened 1 month ago

Jayfl1987 commented 1 month ago

I have tried this with 3 different IPTV venders on there M3U. It is not detecting there VOD. I assume it is because of the way they are formatting there M3U. Can you recomend me a provider that works with this.

Xaque8787 commented 1 month ago

I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx

Jayfl1987 commented 1 month ago

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8

It's a trial. So I don't mind sharing while thing.

Also that was a super fast response.

On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote:

I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx

— Reply to this email directly, view it on GitHub https://github.com/Xaque8787/m3uparser/issues/13#issuecomment-2372329810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUVGUAO2WZHSUR5ODC2TXE3ZYHEG7AVCNFSM6AAAAABOZCFG7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGMZDSOBRGA . You are receiving this because you authored the thread.Message ID: @.***>

Xaque8787 commented 1 month ago

http://dm.lion-ott.com/get.php?username=8zsn2514&password=qVTu1189&type=m3u_plus&output=m3u8

It's a trial. So I don't mind sharing while thing.

Also that was a super fast response.

On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote:

I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx

Could be a couple of things happening here but would you mind trying to run the script and posting the log file. It should appear next to your VOD folders. I'm thinking it may be url format, and some sort of response or lack of a proper response from the provider. Could possibly be solved by adding the env variable BYPASS_HEADER=true to your compose or .env file. But I won't k ow for sure without the log file.

Xaque8787 commented 1 month ago

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8 It's a trial. So I don't mind sharing while thing. Also that was a super fast response. On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote: I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx> .>

OK, so I got it to work by indeed adding BYPASS_HEADER=true to the environment variables. So either add that line in your compose file, or if using the supplied .env file, add that there.

However, it is a very large m3u file, with a handful of languages so you will need to also add values to your SCRUB_HEADER environment variable. Also, there is a test image available that includes a filter option that you may want to use as well. I suggest pulling this image and using that instead of the latest tag, xaque87/m3uparser:filter

Once you do that, this is an example of what these env variables should look like, again, either in your compose file or the .env file. The below SCRUB_HEADER and EXCLUDE_TERM would be for only parsing English content only, and is still just an example, as you may need to fine tune it for any other languages I may have missed. Also note that due to the size of this m3u that the entire parsing and creating strm library may take about an hour to complete.

BYPASS_HEADER=true SCRUB_HEADER="EN -, A+ -" EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -, PK -, BG - "

Jayfl1987 commented 1 month ago

Wowza. You are AWESOME! I will test this tonight.

Also when I copy paste docker commands for installing your file. It does not create m3uscanner.env. I am going off memory. It made ezpztv.env or something like that. I just renamed the file. I an guessing it's a artifact from when you forked the project. I'll screen shot it later tonight.

On Tue, Sep 24, 2024, 11:38 PM Xaque8787 @.***> wrote:

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8 It's a trial. So I don't mind sharing while thing. Also that was a super fast response. … <#m3844679031863300145> On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote: I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx> .>

OK, so I got it to work by indeed adding BYPASS_HEADER=true to the environment variables. So either that line in your compose file, or if using the supplied .env file, add that there.

However, it is a very large m3u file, with a handful of languages so you will need to also add values to your SCRUB_HEADER environment variable. Also, there is a test image available that includes a filter option that you may want to use as well. I suggest pulling this image and using that instead of the latest tag, xaque87/m3uparser:filter

Once you do that, this is an example of what these env variables should look like, again, either in your compose file or the .env file. The below SCRUB_HEADER and EXCLUDE_TERM would be for only parsing English content only, and is still just an example, as you may need to fine tune it for any other languages I may have missed. Also note that due to the size of this m3u that the entire parsing and creating strm library may take about an hour to complete.

BYPASS_HEADER=true SCRUB_HEADER="EN -, A+ -" EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -, PK -, BG - "

— Reply to this email directly, view it on GitHub https://github.com/Xaque8787/m3uparser/issues/13#issuecomment-2372844063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUVGUAKSXEDYRAZDZLBEAWDZYIV3XAVCNFSM6AAAAABOZCFG7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSHA2DIMBWGM . You are receiving this because you authored the thread.Message ID: @.***>

Jayfl1987 commented 1 month ago

If I attempt to load with docker set to windows containers I get

"PS C:\Users\Owner\m3uparser> docker compose up -d [+] Running 0/1


Switch to Linux container and it works.

This is my m3uparser.env #############################

CHANGE TO USERS PUID/PGID

############################# PUID=1000 PGID=1000 HOURS=8 M3U_URL=" http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 "

SCRUB_HEADER="EN -, A+ -"

REMOVE_TERMS=

REPLACE_TERMS=

CLEANERS=

EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -,

PK -, BG - " LIVE_TV=True UNSORTED=False CLEAN_SYNC=False BYPASS_HEADER=TRUE ########################

JELLYFIN INTEGRATION

######################## JELLYFIN_URL= API_KEY= REFRESH_LIB=False #########################

THREADFIN INTEGRATION

######################### TF_USER= TF_PASS= TF_HOST= TF_PORT= ##########################


This is what I see when I run the script

2024-09-25 06:57:07 m3uparser | Attempting to delete existing user and group... 2024-09-25 06:57:07 m3uparser | Creating new group 'm3ugroup'... 2024-09-25 06:57:07 m3uparser | Creating new user 'm3uuser'... 2024-09-25 06:57:07 m3uparser | Setting ownership and permissions... 2024-09-25 06:57:07 m3uparser | Switching to user 'm3uuser' and running parser_script... 2024-09-25 06:57:07 m3uparser | INFO - Skipping url header check. 2024-09-25 06:57:32 m3uparser | INFO - GET request to http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 returned status code: 200 2024-09-25 06:57:32 m3uparser | INFO - Downloaded file from URL: http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 2024-09-25 06:57:32 m3uparser | INFO - All URLs processed. 2024-09-25 06:57:32 m3uparser | INFO - Processing file: /usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 06:57:33 m3uparser | INFO - All files have been combined into /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moving livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed existing file at /usr/src/app/VODS/Live_TV/livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moved /usr/src/app/livetv.m3u to /usr/src/app/VODS/Live_TV 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Movie_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/TV_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/VODS/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed file: /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed file from directory: /usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Total number of errors: 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Number of movies parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of episodes parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of unsorted entries parsed = 2024-09-25 07:02:09 m3uparser | INFO - 1 2024-09-25 07:02:09 m3uparser | INFO - Number of live TV channels parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Waiting for 28800 seconds before restarting...


I am using Windows 10 Pro. I cannot find where it is saving any files. I have even done whole hard drive search.

On Wed, Sep 25, 2024 at 3:44 AM Jay @.***> wrote:

Wowza. You are AWESOME! I will test this tonight.

Also when I copy paste docker commands for installing your file. It does not create m3uscanner.env. I am going off memory. It made ezpztv.env or something like that. I just renamed the file. I an guessing it's a artifact from when you forked the project. I'll screen shot it later tonight.

On Tue, Sep 24, 2024, 11:38 PM Xaque8787 @.***> wrote:

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8 It's a trial. So I don't mind sharing while thing. Also that was a super fast response. … <#m_5191063144438103583_m3844679031863300145> On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote: I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx> .>

OK, so I got it to work by indeed adding BYPASS_HEADER=true to the environment variables. So either that line in your compose file, or if using the supplied .env file, add that there.

However, it is a very large m3u file, with a handful of languages so you will need to also add values to your SCRUB_HEADER environment variable. Also, there is a test image available that includes a filter option that you may want to use as well. I suggest pulling this image and using that instead of the latest tag, xaque87/m3uparser:filter

Once you do that, this is an example of what these env variables should look like, again, either in your compose file or the .env file. The below SCRUB_HEADER and EXCLUDE_TERM would be for only parsing English content only, and is still just an example, as you may need to fine tune it for any other languages I may have missed. Also note that due to the size of this m3u that the entire parsing and creating strm library may take about an hour to complete.

BYPASS_HEADER=true SCRUB_HEADER="EN -, A+ -" EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -, PK -, BG - "

— Reply to this email directly, view it on GitHub https://github.com/Xaque8787/m3uparser/issues/13#issuecomment-2372844063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUVGUAKSXEDYRAZDZLBEAWDZYIV3XAVCNFSM6AAAAABOZCFG7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSHA2DIMBWGM . You are receiving this because you authored the thread.Message ID: @.***>

Xaque8787 commented 1 month ago

If I attempt to load with docker set to windows containers I get

"PS C:\Users\Owner\m3uparser> docker compose up -d [+] Running 0/1

  • m3uparser Pulling 1.5s image operating system "linux" cannot be used on this platform: operating system is not supported"

Switch to Linux container and it works.

This is my m3uparser.env #############################

CHANGE TO USERS PUID/PGID

############################# PUID=1000 PGID=1000 HOURS=8 M3U_URL=" http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 "

SCRUB_HEADER="EN -, A+ -"

REMOVE_TERMS=

REPLACE_TERMS=

CLEANERS=

EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -,

PK -, BG - " LIVE_TV=True UNSORTED=False CLEAN_SYNC=False BYPASS_HEADER=TRUE ########################

JELLYFIN INTEGRATION

######################## JELLYFIN_URL= API_KEY= REFRESH_LIB=False #########################

THREADFIN INTEGRATION

######################### TF_USER= TF_PASS= TF_HOST= TF_PORT= ##########################


This is what I see when I run the script

2024-09-25 06:57:07 m3uparser | Attempting to delete existing user and group... 2024-09-25 06:57:07 m3uparser | Creating new group 'm3ugroup'... 2024-09-25 06:57:07 m3uparser | Creating new user 'm3uuser'... 2024-09-25 06:57:07 m3uparser | Setting ownership and permissions... 2024-09-25 06:57:07 m3uparser | Switching to user 'm3uuser' and running parser_script... 2024-09-25 06:57:07 m3uparser | INFO - Skipping url header check. 2024-09-25 06:57:32 m3uparser | INFO - GET request to http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 returned status code: 200 2024-09-25 06:57:32 m3uparser | INFO - Downloaded file from URL: http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 2024-09-25 06:57:32 m3uparser | INFO - All URLs processed. 2024-09-25 06:57:32 m3uparser | INFO - Processing file: /usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 06:57:33 m3uparser | INFO - All files have been combined into /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moving livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed existing file at /usr/src/app/VODS/Live_TV/livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moved /usr/src/app/livetv.m3u to /usr/src/app/VODS/Live_TV 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Movie_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/TV_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/VODS/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed file: /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed file from directory: /usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Total number of errors: 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Number of movies parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of episodes parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of unsorted entries parsed = 2024-09-25 07:02:09 m3uparser | INFO - 1 2024-09-25 07:02:09 m3uparser | INFO - Number of live TV channels parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Waiting for 28800 seconds before restarting...


I am using Windows 10 Pro. I cannot find where it is saving any files. I have even done whole hard drive search.

On Wed, Sep 25, 2024 at 3:44 AM Jay @.***> wrote:

Wowza. You are AWESOME! I will test this tonight.

Also when I copy paste docker commands for installing your file. It does not create m3uscanner.env. I am going off memory. It made ezpztv.env or something like that. I just renamed the file. I an guessing it's a artifact from when you forked the project. I'll screen shot it later tonight.

On Tue, Sep 24, 2024, 11:38 PM Xaque8787 @.***> wrote:

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8 It's a trial. So I don't mind sharing while thing. Also that was a super fast response. … <#m_5191063144438103583_m3844679031863300145> On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote: I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx> .>

OK, so I got it to work by indeed adding BYPASS_HEADER=true to the environment variables. So either that line in your compose file, or if using the supplied .env file, add that there.

However, it is a very large m3u file, with a handful of languages so you will need to also add values to your SCRUB_HEADER environment variable. Also, there is a test image available that includes a filter option that you may want to use as well. I suggest pulling this image and using that instead of the latest tag, xaque87/m3uparser:filter

Once you do that, this is an example of what these env variables should look like, again, either in your compose file or the .env file. The below SCRUB_HEADER and EXCLUDE_TERM would be for only parsing English content only, and is still just an example, as you may need to fine tune it for any other languages I may have missed. Also note that due to the size of this m3u that the entire parsing and creating strm library may take about an hour to complete.

BYPASS_HEADER=true SCRUB_HEADER="EN -, A+ -" EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -, PK -, BG - "

Have not tested this project on windows, not sure if I'm able to either, it's really meant to be ran under a Linux environment.

The ezpztv.env is from one of the other branches of this project, and that shouldn't be happening. This isn't a fork of another project either, just my own little project I've created. I'll look into that as that may be causing an issue. In that env file, you may have success if you add the env variable to APP_VERSION=m3uparser

You also need to map volumes to the host using docker volume mounts, that's where the files would be created.

Jayfl1987 commented 1 month ago

I added application_version=m3uparser and it did stuff. It scanned n VOD files.

BUT. It stikkndid not create files. I tripled changing file path with environmental variable. That did not work. I might just have ti rub on Linux.

I'll try tomorrow.

On Wed, Sep 25, 2024, 11:04 AM Xaque8787 @.***> wrote:

If I attempt to load with docker set to windows containers I get

"PS C:\Users\Owner\m3uparser> docker compose up -d [+] Running 0/1

  • m3uparser Pulling 1.5s image operating system "linux" cannot be used on this platform: operating system is not supported"

Switch to Linux container and it works.

This is my m3uparser.env ############################# CHANGE TO USERS PUID/PGID

############################# PUID=1000 PGID=1000 HOURS=8 M3U_URL="

http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 " SCRUB_HEADER="EN -, A+ -" REMOVE_TERMS= REPLACE_TERMS= CLEANERS= EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -,

PK -, BG - " LIVE_TV=True UNSORTED=False CLEAN_SYNC=False BYPASS_HEADER=TRUE ######################## JELLYFIN INTEGRATION

######################## JELLYFIN_URL= API_KEY= REFRESH_LIB=False ######################### THREADFIN INTEGRATION

######################### TF_USER= TF_PASS= TF_HOST= TF_PORT= ##########################

This is what I see when I run the script

2024-09-25 06:57:07 m3uparser | Attempting to delete existing user and group... 2024-09-25 06:57:07 m3uparser | Creating new group 'm3ugroup'... 2024-09-25 06:57:07 m3uparser | Creating new user 'm3uuser'... 2024-09-25 06:57:07 m3uparser | Setting ownership and permissions... 2024-09-25 06:57:07 m3uparser | Switching to user 'm3uuser' and running parser_script... 2024-09-25 06:57:07 m3uparser | INFO - Skipping url header check. 2024-09-25 06:57:32 m3uparser | INFO - GET request to

http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 returned status code: 200 2024-09-25 06:57:32 m3uparser | INFO - Downloaded file from URL:

http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 2024-09-25 06:57:32 m3uparser | INFO - All URLs processed. 2024-09-25 06:57:32 m3uparser | INFO - Processing file:

/usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 06:57:33 m3uparser | INFO - All files have been combined into /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moving livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed existing file at /usr/src/app/VODS/Live_TV/livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moved /usr/src/app/livetv.m3u to /usr/src/app/VODS/Live_TV 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Movie_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/TV_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/VODS/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed file: /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed file from directory:

/usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Total number of errors: 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Number of movies parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of episodes parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of unsorted entries parsed = 2024-09-25 07:02:09 m3uparser | INFO - 1 2024-09-25 07:02:09 m3uparser | INFO - Number of live TV channels parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Waiting for 28800 seconds before restarting...

I am using Windows 10 Pro. I cannot find where it is saving any files. I have even done whole hard drive search.

On Wed, Sep 25, 2024 at 3:44 AM Jay @.***> wrote:

Wowza. You are AWESOME! I will test this tonight.

Also when I copy paste docker commands for installing your file. It does not create m3uscanner.env. I am going off memory. It made ezpztv.env or something like that. I just renamed the file. I an guessing it's a artifact from when you forked the project. I'll screen shot it later tonight.

On Tue, Sep 24, 2024, 11:38 PM Xaque8787 @.***> wrote:

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8 It's a trial. So I don't mind sharing while thing. Also that was a super fast response. … <#m_5191063144438103583_m3844679031863300145> On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote: I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx> .>

OK, so I got it to work by indeed adding BYPASS_HEADER=true to the environment variables. So either that line in your compose file, or if using the supplied .env file, add that there.

However, it is a very large m3u file, with a handful of languages so you will need to also add values to your SCRUB_HEADER environment variable. Also, there is a test image available that includes a filter option that you may want to use as well. I suggest pulling this image and using that instead of the latest tag, xaque87/m3uparser:filter

Once you do that, this is an example of what these env variables should look like, again, either in your compose file or the .env file. The below SCRUB_HEADER and EXCLUDE_TERM would be for only parsing English content only, and is still just an example, as you may need to fine tune it for any other languages I may have missed. Also note that due to the size of this m3u that the entire parsing and creating strm library may take about an hour to complete.

BYPASS_HEADER=true SCRUB_HEADER="EN -, A+ -" EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -, PK -, BG - "

Have not tested this project on windows, not sure if I'm able to either, it's really meant to be ran under a Linux environment.

The ezpztv.env is from one of the other branches of this project, and that shouldn't be happening. This isn't a fork of another project either, just my own little project I've created. I'll look into that as that may be causing an issue. In that env file, you may have success if you change the env variable to application_version=m3uparser

Xaque8787 commented 1 month ago

I added application_version=m3uparser and it did stuff. It scanned n VOD files.

BUT. It stikkndid not create files. I tripled changing file path with environmental variable. That did not work. I might just have ti rub on Linux.

I'll try tomorrow.

On Wed, Sep 25, 2024, 11:04 AM Xaque8787 @.***> wrote:

If I attempt to load with docker set to windows containers I get

"PS C:\Users\Owner\m3uparser> docker compose up -d [+] Running 0/1

  • m3uparser Pulling 1.5s image operating system "linux" cannot be used on this platform: operating system is not supported"

Switch to Linux container and it works.

This is my m3uparser.env ############################# CHANGE TO USERS PUID/PGID

############################# PUID=1000 PGID=1000 HOURS=8 M3U_URL="

http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 " SCRUB_HEADER="EN -, A+ -" REMOVE_TERMS= REPLACE_TERMS= CLEANERS= EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -,

PK -, BG - " LIVE_TV=True UNSORTED=False CLEAN_SYNC=False BYPASS_HEADER=TRUE ######################## JELLYFIN INTEGRATION

######################## JELLYFIN_URL= API_KEY= REFRESH_LIB=False ######################### THREADFIN INTEGRATION

######################### TF_USER= TF_PASS= TF_HOST= TF_PORT= ##########################

This is what I see when I run the script

2024-09-25 06:57:07 m3uparser | Attempting to delete existing user and group... 2024-09-25 06:57:07 m3uparser | Creating new group 'm3ugroup'... 2024-09-25 06:57:07 m3uparser | Creating new user 'm3uuser'... 2024-09-25 06:57:07 m3uparser | Setting ownership and permissions... 2024-09-25 06:57:07 m3uparser | Switching to user 'm3uuser' and running parser_script... 2024-09-25 06:57:07 m3uparser | INFO - Skipping url header check. 2024-09-25 06:57:32 m3uparser | INFO - GET request to

http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 returned status code: 200 2024-09-25 06:57:32 m3uparser | INFO - Downloaded file from URL:

http://dm.lion-ott.com/get.php?username=XXXXXX&password=XXXXXX&type=m3u&output=m3u8 2024-09-25 06:57:32 m3uparser | INFO - All URLs processed. 2024-09-25 06:57:32 m3uparser | INFO - Processing file:

/usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 06:57:33 m3uparser | INFO - All files have been combined into /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moving livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed existing file at /usr/src/app/VODS/Live_TV/livetv.m3u 2024-09-25 07:02:09 m3uparser | INFO - Moved /usr/src/app/livetv.m3u to /usr/src/app/VODS/Live_TV 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Movie_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/TV_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed folder and its contents: /usr/src/app/VODS/Unsorted_VOD 2024-09-25 07:02:09 m3uparser | INFO - Removed file: /usr/src/app/m3u_file.m3u 2024-09-25 07:02:09 m3uparser | INFO - Removed file from directory:

/usr/src/app/m3u/get.php?username=8zsn2514&password=qVTu1189&type=m3u&output=m3u8 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Total number of errors: 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - 2024-09-25 07:02:09 m3uparser | INFO - Number of movies parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of episodes parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Number of unsorted entries parsed = 2024-09-25 07:02:09 m3uparser | INFO - 1 2024-09-25 07:02:09 m3uparser | INFO - Number of live TV channels parsed = 2024-09-25 07:02:09 m3uparser | INFO - 0 2024-09-25 07:02:09 m3uparser | INFO - Waiting for 28800 seconds before restarting...

I am using Windows 10 Pro. I cannot find where it is saving any files. I have even done whole hard drive search.

On Wed, Sep 25, 2024 at 3:44 AM Jay @.***> wrote:

Wowza. You are AWESOME! I will test this tonight.

Also when I copy paste docker commands for installing your file. It does not create m3uscanner.env. I am going off memory. It made ezpztv.env or something like that. I just renamed the file. I an guessing it's a artifact from when you forked the project. I'll screen shot it later tonight.

On Tue, Sep 24, 2024, 11:38 PM Xaque8787 @.***> wrote:

http://dm.lion-ott.com/get.php?username=xxxx&password= xxxx&type=m3u_plus&output=m3u8 It's a trial. So I don't mind sharing while thing. Also that was a super fast response. … <#m_5191063144438103583_m3844679031863300145> On Tue, Sep 24, 2024, 4:34 PM Xaque8787 @.***> wrote: I'll do you one better and try to help get your current provider working. Would you be able to post a redacted version of your m3u file from your provider. Don't need thr entire thing, just simply a couple of lines containing VOD content, making sure to replace any streaming url or any username/password information with xxxxx> .>

OK, so I got it to work by indeed adding BYPASS_HEADER=true to the environment variables. So either that line in your compose file, or if using the supplied .env file, add that there.

However, it is a very large m3u file, with a handful of languages so you will need to also add values to your SCRUB_HEADER environment variable. Also, there is a test image available that includes a filter option that you may want to use as well. I suggest pulling this image and using that instead of the latest tag, xaque87/m3uparser:filter

Once you do that, this is an example of what these env variables should look like, again, either in your compose file or the .env file. The below SCRUB_HEADER and EXCLUDE_TERM would be for only parsing English content only, and is still just an example, as you may need to fine tune it for any other languages I may have missed. Also note that due to the size of this m3u that the entire parsing and creating strm library may take about an hour to complete.

BYPASS_HEADER=true SCRUB_HEADER="EN -, A+ -" EXCLUDE_TERM="NL -, DE -, FR -, GE -, PL -, AR -, ES -, GR -, IN -, RU -, PK -, BG - "

Have not tested this project on windows, not sure if I'm able to either, it's really meant to be ran under a Linux environment.

The ezpztv.env is from one of the other branches of this project, and that shouldn't be happening. This isn't a fork of another project either, just my own little project I've created. I'll look into that as that may be causing an issue. In that env file, you may have success if you change the env variable to application_version=m3uparser

Do you have volume mounts applied? You can not use the .env file to apply volume mounts, that's typically done in the compose file itself. But since you're using windows I'm not sure exactly where to apply the mounts. Like, if you're using docker desktop, if I recall from when I last used that, there should be a spot to map volumes on your host machine to the container. You will need to do that, and you can choose whatever location on the host but the container path will need to be /usr/src/app/VODS

So the compose example on the github has this for volume mounts

volumes:

If you have a compose file and on windows it may look something like

volumes:

Again, not so familiar with windows docker setups though