Jump to content
Ketarin forum

Help with Plex Application


mikeparkie
 Share

Recommended Posts

I'm trying to setup a new package for Plex, the download from the website works directly, but doesn't when I try with Ketarin so I need some help please...

 

Plex The remote server returned an error: (404) Not Found. (http://cdn.plexapp.c...ae65a-en-US.exe)

 

Url from website: http://cdn.plexapp.c...ae65a-en-US.exe

 

Also will my download url break on a new release? I currently have http://cdn.plexapp.c...e65a-en-US.exe but I am unsure whether "e6ae65a" is unique to the version download.

 

Application definition:

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="01a0ed82-4063-41b7-b5cd-7fe8c11041a0">
<WebsiteUrl />
<UserAgent />
<UserNotes />
<LastFileSize>0</LastFileSize>
<LastFileDate xsi:nil="true" />
<IgnoreFileInformation>false</IgnoreFileInformation>
<DownloadBeta>Default</DownloadBeta>
<DownloadDate xsi:nil="true" />
<CheckForUpdatesOnly>false</CheckForUpdatesOnly>
<VariableChangeIndicator>version</VariableChangeIndicator>
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload>false</ExclusiveDownload>
<HttpReferer>http://www.plexapp.com/download/win-download-new.php</HttpReferer>
<SetupInstructions />
<Variables>
 <item>
 <key>
	 <string>version</string>
 </key>
 <value>
	 <UrlVariable>
	 <RegexRightToLeft>false</RegexRightToLeft>
	 <VariableType>StartEnd</VariableType>
	 <Regex />
	 <Url>http://www.plexapp.com/download/win-download-new.php</Url>
	 <StartText>http://cdn.plexapp.com/PlexMediaServer/</StartText>
	 <EndText>/Plex-Media-</EndText>
	 <Name>version</Name>
	 </UrlVariable>
 </value>
 </item>
</Variables>
<ExecuteCommand />
<ExecutePreCommand />
<ExecuteCommandType>Batch</ExecuteCommandType>
<ExecutePreCommandType>Batch</ExecutePreCommandType>
<Category>02 - Media</Category>
<SourceType>FixedUrl</SourceType>
<PreviousLocation />
<DeletePreviousFile>true</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<LastUpdated xsi:nil="true" />
<TargetPath>{root}\System\{category}\{appname} [{version}].{url:ext}</TargetPath>
<FixedDownloadUrl>http://cdn.plexapp.com/PlexMediaServer/{version}/Plex-Media-Server-{version}-e6ae65a-en-US.exe</FixedDownloadUrl>
<Name>Plex</Name>
</ApplicationJob>
</Jobs>

 

All help is greatly appreciated.

Link to comment
Share on other sites

Reading this post by Omniferum helped me a lot, might make life easier. Also check out the online database again, I put a few together already. Figured it might help to see some in action and how easy it can be to modify.

 

I have attached a cheat sheet, most of which is the above mentioned post. It is very basic, and if anyone wants to add to it or correct it, please do.

 

Hope this helps!

Cheat Sheet.txt

Link to comment
Share on other sites

So just trying things out.

 

What would you do for Plex?

http://www.plexapp.com/download/win-download-new.php

 

there are two exe's on the one page, how would you get regex to select the second exe?

 

I need this one?

http://cdn.plexapp.com/PlexMediaServer/0.9.6.8.228/Plex-Media-Server-0.9.608.228-e6ae65a-en-US.exe

 

But using regex

[^"'=]+\.exe

I get

http://plex-downloads.s3.amazonaws.com/plex-laika/0.9.5.4/Plex-Media-Center-v3213059-en-US.exe

 

Thanks inadvance

Link to comment
Share on other sites

mikeparkie, read the rest of the Omniferum post, it show you how to do:

 

To find specific words in URL (Like x32 or x64 builds) all you need to do is add the text after the first + sign. To find multiple just keep adding [^'']+ followed by the keyword. Keep in mind it is sequential.

 

[^"']+64[^"']+\.zip

 

Keep in mind that if the 64 is directly before the file extension the regex won't match, so just remove a character and you'll be fine. So the above would turn into [^"']+6[^"']+\.zip

 

In your case to download Plex media server use this regex:

[^"']+server[^"']+\.exe

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
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.