Skip to content

Commit

Permalink
* Fix for play music from latests where , in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew J.Swan committed Nov 16, 2015
1 parent 272e125 commit ec4a2e9
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LatestMediaHandler/LatestMusicHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ internal LatestsCollection GetLatestMusic(bool _onStartUp, string type)
string artist = mySong.AlbumArtist;
string album = mySong.Album;
string sPaths = Utils.GetDistinct(mySong.FileName);
string sGenres = Utils.GetDistinct(mySong.Genre);
string sGenres = Utils.GetDistinct(mySong.Genre != null ? mySong.Genre.Replace(",", "|") : string.Empty);
string sFileType = mySong.FileType;
string dateAdded = string.Empty;
bool isnew = false;
Expand Down
1 change: 0 additions & 1 deletion LatestMediaHandler/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ internal static string GetDistinct (string Input)
if (string.IsNullOrEmpty(Input))
return result ;

Input = Input.Replace(",", "|");
Hashtable ht = new Hashtable();
try
{
Expand Down
Binary file added builds/LatestMediaHandler-2.3.0.51.mpe1
Binary file not shown.
154 changes: 154 additions & 0 deletions scripts/LatestMediaHandler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,160 @@
<ValueType>Template</ValueType>
<Description>The file used to configure the extension.
If have .exe extension the will be executed
If have .dll extension used like MP plugin configuration</Description>
</SectionParam>
<SectionParam Name="Online Screenshots">
<Value>https://raw.githubusercontent.com/yoavain/mediaportal-latest-media-handler/master/screenshot1.jpg;https://raw.githubusercontent.com/yoavain/mediaportal-latest-media-handler/master/screenshot2.jpg;https://raw.githubusercontent.com/yoavain/mediaportal-latest-media-handler/master/screenshot3.jpg;https://raw.githubusercontent.com/yoavain/mediaportal-latest-media-handler/master/screenshot4.jpg</Value>
<ValueType>String</ValueType>
<Description>Online stored screenshot urls separated by ; </Description>
</SectionParam>
<SectionParam Name="Force to uninstall on update">
<Value>YES</Value>
<ValueType>Bool</ValueType>
<Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description>
</SectionParam>
</Items>
</Params>
</GeneralInfo>
<UniqueFileList>
<Items />
</UniqueFileList>
<ProjectSettings>
<FolderGroups />
</ProjectSettings>
<IsSkin>false</IsSkin>
</PackageClass>
<PackageClass>
<Version>2.0</Version>
<Groups>
<Items>
<GroupItem Name="Default">
<DisplayName>Default</DisplayName>
<DefaulChecked>true</DefaulChecked>
<Description>Default</Description>
<Files>
<Items />
</Files>
</GroupItem>
<GroupItem Name="Languages">
<DisplayName>Languages</DisplayName>
<DefaulChecked>true</DefaulChecked>
<Description>Languages</Description>
<Files>
<Items />
</Files>
</GroupItem>
</Items>
</Groups>
<Sections>
<Items />
</Sections>
<Dependencies>
<Items>
<DependencyItem>
<Type>MediaPortal</Type>
<Id />
<MinVersion>
<Major>1</Major>
<Minor>1</Minor>
<Build>6</Build>
<Revision>27644</Revision>
</MinVersion>
<MaxVersion>
<Major>1</Major>
<Minor>1</Minor>
<Build>6</Build>
<Revision>27644</Revision>
</MaxVersion>
<WarnOnly>false</WarnOnly>
<Message>Requires MediaPortal version 1.2</Message>
<Name>MediaPortal</Name>
</DependencyItem>
<DependencyItem>
<Type>Skin</Type>
<Id />
<MinVersion>
<Major>1</Major>
<Minor>4</Minor>
<Build>0</Build>
<Revision>0</Revision>
</MinVersion>
<MaxVersion>
<Major>1</Major>
<Minor>4</Minor>
<Build>0</Build>
<Revision>0</Revision>
</MaxVersion>
<WarnOnly>true</WarnOnly>
<Message>Requires Skin version 1.4.0.0 to 1.4.0.0.</Message>
<Name>Skin</Name>
</DependencyItem>
<DependencyItem>
<Type>Installer</Type>
<Id />
<MinVersion>
<Major>1</Major>
<Minor>9</Minor>
<Build>0</Build>
<Revision>0</Revision>
</MinVersion>
<MaxVersion>
<Major>1</Major>
<Minor>99</Minor>
<Build>999</Build>
<Revision>999</Revision>
</MaxVersion>
<WarnOnly>true</WarnOnly>
<Message>Requires Installer version 1.9.0.0 to 1.99.999.999</Message>
<Name>Installer</Name>
</DependencyItem>
</Items>
</Dependencies>
<PluginDependencies>
<Items />
</PluginDependencies>
<GeneralInfo>
<Name>Latest Media Handler</Name>
<Id>fb03aa80-a2e3-4d77-a84d-4c0ae17eb49c</Id>
<Author>ajs (maintained by yoavain, original by cul8er)</Author>
<HomePage>https://github.com/yoavain/mediaportal-latest-media-handler</HomePage>
<ForumPage>http://forum.team-mediaportal.com/threads/latest-media-handler-v2-3-x-000.132114/</ForumPage>
<UpdateUrl>https://raw.githubusercontent.com/yoavain/mediaportal-latest-media-handler/master/scripts/LatestMediaHandler.xml</UpdateUrl>
<Version>
<Major>2</Major>
<Minor>3</Minor>
<Build>0</Build>
<Revision>51</Revision>
</Version>
<ExtensionDescription>The plugin basically supports pushing latest added media to your skin.

* latest added pictures
* latest added music
* latest added videos
* latest added series (tvseries)
* latest added movies (moving pictures)
* latest added movies (my films)
* latest added videos (mvcentral)
* latest added tv recordings
</ExtensionDescription>
<VersionDescription>* Fix for play music from latests where , in filenames</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://github.com/yoavain/mediaportal-latest-media-handler/raw/master/builds/LatestMediaHandler-2.3.0.51.mpe1</OnlineLocation>
<ReleaseDate>2015-11-16T18:00:04.2982682+02:00</ReleaseDate>
<Tags>latest media,music,recording,picture,series,movie,mvcentral</Tags>
<Location>..\builds\LatestMediaHandler-MAJOR.MINOR.BUILD.REVISION.mpe1</Location>
<Params>
<Items>
<SectionParam Name="Online Icon">
<Value>https://raw.githubusercontent.com/yoavain/mediaportal-latest-media-handler/master/LatestMediaHandler_Icon.png</Value>
<ValueType>String</ValueType>
<Description>The icon file of the package stored online (jpg,png,bmp)</Description>
</SectionParam>
<SectionParam Name="Configuration file">
<Value>%Plugins%\process\latestmediahandler.dll</Value>
<ValueType>Template</ValueType>
<Description>The file used to configure the extension.
If have .exe extension the will be executed
If have .dll extension used like MP plugin configuration</Description>
</SectionParam>
<SectionParam Name="Online Screenshots">
Expand Down
4 changes: 2 additions & 2 deletions scripts/LatestMediaHandler.xmp2
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ cul8er</Value>
* latest added videos (mvcentral)
* latest added tv recordings
</ExtensionDescription>
<VersionDescription>+ Change the number of recent items, from 3 to 4.</VersionDescription>
<VersionDescription>* Fix for play music from latests where , in filenames</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://github.com/yoavain/mediaportal-latest-media-handler/raw/master/builds/LatestMediaHandler-{VERSION}.mpe1</OnlineLocation>
<ReleaseDate>2015-11-15T09:06:46</ReleaseDate>
<ReleaseDate>2015-11-16T09:06:46</ReleaseDate>
<Tags>latest media,music,recording,picture,series,movie,mvcentral</Tags>
<Location>..\builds\LatestMediaHandler-MAJOR.MINOR.BUILD.REVISION.mpe1</Location>
<Params>
Expand Down

0 comments on commit ec4a2e9

Please sign in to comment.