Jump to content

XtreamDownloader - VOD file & VOD STRM export from Live TV provider


Senna

Recommended Posts

You can also send me a mail - and tell me which parts you would like to filter out, so i can update the tool - so it filters out the parts emby falls over. Greetings Ernst

Link to comment
Share on other sites

Senna

You can also send me a mail - and tell me which parts you would like to filter out, so i can update the tool - so it filters out the parts emby falls over. Greetings Ernst

As long as it is an option, otherwise it messes up my automation of strm export to my Emby libraries...

Link to comment
Share on other sites

Sure, what i can do is add a extra command to the command line tool - so users can set a custom filter (maybe regex based). But ill look into it this week - im very busy at the moment, but ill try to help where i can :)

  • Like 1
Link to comment
Share on other sites

revengineer

You can also send me a mail - and tell me which parts you would like to filter out, so i can update the tool - so it filters out the parts emby falls over. Greetings Ernst

I tend to agree with Senna. This seems to be a provider specific naming option and it could also change at any time. It is thus difficult to recommend any specific action. For the time being, I use the following command to strip the file names:

get-childitem -recurse *.strm | foreach { rename-item -literalpath $_ $_.Name.Replace(" [Multi-Subs]", "") }

This seems to work in most cases. A few files still have the [] tag and I will need to chase this down.

 

@ERD: One thing that would be of interest is to run the m3u to strm conversion via command line to that the task can be scheduled for periodic updating of the VOD library. Not sure if this is already possible.

Link to comment
Share on other sites

gtmnyc

os.mkdir(season_path)

block2 = re.compile('<pre><a href=.+?</a>(.+?)</pre>' ,re.DOTALL).findall(html2)

link2 = re.compile('<a href=\"(.+?)\"' ,re.DOTALL).findall(str(block2))

for link3 in link2:

html3 = requests.get(url+link+link1+link3).content.decode('utf-8')

block3 = re.compile('<pre><a href=.+?</a>(.+?)</pre>' ,re.DOTALL).findall(html3)

link4 = re.compile('<a href=\"(.+?)\"' ,re.DOTALL).findall(str(block3))

for episode in link4:

season_file = name+season

season_file = season_file.replace("/"," ")

episode_file = os.path.join(

Link to comment
Share on other sites

@ERD: One thing that would be of interest is to run the m3u to strm conversion via command line to that the task can be scheduled for periodic updating of the VOD library. Not sure if this is already possible.

 

This is already possible - you can convert local and remote m3u files.

5cb392ff355e7_convert.png

Link to comment
Share on other sites

gtmnyc

This is already possible - you can convert local and remote m3u files.

5cb392ff355e7_convert.png

 

Is this set to run at a certain time.. Will it pull new vod when added..??

Link to comment
Share on other sites

No you will need to add it to windows registry startup key, or to the task scheduler yourself. But with help of the wizard - this is real easy.

Link to comment
Share on other sites

revengineer

This is already possible - you can convert local and remote m3u files.

Excellent, thank you! I will give this a shot.

Link to comment
Share on other sites

revengineer

This is already possible - you can convert local and remote m3u files.

 

Could you elaborate on the option "read output folders and groups from settings ini"? I assume this will allow be to limit download of certain folders. I could not find a manual or tutorial where this is explained. Thank you.

Link to comment
Share on other sites

Senna

Have you read "M3U2STRM ReadMe.txt" and executed the M3U2STRM Command Line Tool wizard in export menu ?
The wizard creates the ini file for you and the string to use in Task Scheduler.

See post #9 and #10, it's self explanatory.

If you create a task in Task scheduler, the xml could look like this when you do an export from the Task you have created for the automation:

 

 

 

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2018-11-28T14:08:42.6361753</Date>
    <Author>SERVERNAME\Senna</Author>
    <URI>\_Senna-Task_M3U2STRM</URI>
  </RegistrationInfo>
  <Triggers>
    <BootTrigger>
      <ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <Delay>PT5M</Delay>
    </BootTrigger>
    <CalendarTrigger>
      <StartBoundary>2018-11-28T03:00:00</StartBoundary>
      <ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
    <CalendarTrigger>
      <StartBoundary>2018-11-28T11:00:00</StartBoundary>
      <ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
    <CalendarTrigger>
      <StartBoundary>2018-11-29T19:00:00</StartBoundary>
      <ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>private_ID</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>LeastPrivilege</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\YourPath\xtreamdownloader\M3U2STRM.exe</Command>
      <Arguments>-url http%3A%2F%2FIPTVserver.url%3Aport%2Fget.php%3Fusername%3DXXXXXX%26password%3DYYYYYY%26type%3Dm3u_plus%26output%3Dts -checkfileext -settings C:\YourPath\xtreamdownloader\M3U2STRM.ini</Arguments>
    </Exec>
  </Actions>
</Task>

 

 

 

This xml (sanatized) of the Scheduled Task executes at 03:00, 11:00 and 19:00 and only uses as parameters for the M3U2STRM Command Line tool (See <exec> part, in bottom part of xml ):

- "-checkfileext" (see Read Me txt for explanation)

- "-settings" (to specify to use your ini file, created by the M3U2STRM wizard, which groups from m3u to create strm files for and to which location these files are transferred to)

 

When you have multiple providers you want to run a Task for, the following workflow I find easiest:

- export your current task as xml

- make a copy of xml

- edit that copy xml for your new provider URL

- create new ini from M3U2STRM wizard

- specify location/file name of new ini in copy xml

- save copy xml

- import new xml back into Task Scheduler

Edited by Senna
  • Like 2
Link to comment
Share on other sites

The ini file allows you to set multiple output folders, sample:

*** Example Ini: ***

[NLFilms]
Group=NL-DutchMovies
Directory=C:\Users\User1\Desktop\Dutch

[NLFilms2]
Group=EN-EnglishMovies
Directory=C:\Users\User1\Desktop\English
  • Like 2
Link to comment
Share on other sites

revengineer

 

The ini file allows you to set multiple output folders, sample:

*** Example Ini: ***

[NLFilms]
Group=NL-DutchMovies
Directory=C:\Users\User1\Desktop\Dutch

[NLFilms2]
Group=EN-EnglishMovies
Directory=C:\Users\User1\Desktop\English

Perfect, and I did not realize that creation of the settings.ini file is part of the wizard. I have it all running now. Stream files are refreshed once a week. Then the [] tags are removed from the batch file. It turns out, renaming only works if the renamed file does not already exist. Forcing to overwrite does not work. So need to moved file instead. The revised command is

get-childitem -recurse *.strm | foreach { move-item -literalpath $_ $_.FullName.Replace(" [Multi-Subs]", "") }

Thanks for all the help today.

  • Like 2
Link to comment
Share on other sites

EODCrafter

Perfect, and I did not realize that creation of the settings.ini file is part of the wizard. I have it all running now. Stream files are refreshed once a week. Then the [] tags are removed from the batch file. It turns out, renaming only works if the renamed file does not already exist. Forcing to overwrite does not work. So need to moved file instead. The revised command is

get-childitem -recurse *.strm | foreach { move-item -literalpath $_ $_.FullName.Replace(" [Multi-Subs]", "") }

Thanks for all the help today.

The only thing you can't do in Automation is Pull Series VODs and have them got into Episode/Season Folders but @@ERD has told me he's looking into implementing this function!

 

Like This.....

 

5cb4635b9ecbd_Capture.png

Edited by EODCrafter
  • Like 1
Link to comment
Share on other sites

Senna

For people who are going to use or are using a lot of strm libraries in Emby already, will notice that Media Info of strm content, only gets added to the content, after probing of strm media is done by Emby.

This probing takes place when you play strm media with one of the Emby Client apps or Web app.

 

To get an overview in library movie list, the CoverArt plugin is a very handy tool to see which media is already been probed.

Probed content gets an overlay, which you can define in CoverArt plugin settings. Because the plugins built in standard indicator overlays aren't very good to see in library view, I made my custom overlay indicator templates available for everyone to use.

You can find them in this topic and if you also are going to create custom indicator overlays, it would be great to share them in that same topic.

 

Some examples of the overly indicators used in my strm libraries:

 

5cb4754a2eb35_01_4KTrueHD.jpg5cb47560e13d1_05_1080_DTS.jpg5cb4757389e38_08_720_DTS.jpg

 

So when strm content is not probed yet by Emby, you wont see the HD frame and the overlay indicators for resolution, audio codec and default subtitle for that content (so you get only the plain cover with no info indicators)

Link to comment
Share on other sites

  • 3 months later...
maegibbons

Hi

 

Well the website sent me to paypal and it took my money.

 

Then when it returned to the website it said the transaction had been cancelled.

 

It wasnt - the money has gone.

 

I have emailed the contact address.

 

Disappointing.

 

Krs

 

Mark

Link to comment
Share on other sites

maegibbons

Just tried an Export to strm and got the following error

Krs

Mark

 

5d4d6ac81e14b_xtreamerror.jpg

Link to comment
Share on other sites

maegibbons

Also,

 

Can we have an option to create Directories for each movie when exporting strm?

 

At the moment you create a Directory for the group and strm's for all the movies in the group go in to that one directory.

 

I would like a directory for each movie, within the group directory, with the strm in that "each movie" directory.  Emby will then shove all the fanart for each movie in that directory.

 

It just separates all the files more logically.

 

KR's

 

Mark

Edited by maegibbons
  • Like 1
Link to comment
Share on other sites

EODCrafter

Since we are on Feature Requests...99.9% of IPTV Has PPV/EVENTS category that would fit Nicely with your Download Tool. Please! :)

Link to comment
Share on other sites

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