Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

line endings for git

git-svn-id: https://videobrowser.googlecode.com/svn/trunk@1166 096cc86f-8a4c-0410-9b85-8b5e0eee1c45
  • Loading branch information...
commit bf132b535a591f464cd0dbe913328e96e208bd6a 1 parent 0c1368a
sam.saffron authored
Showing with 5,036 additions and 5,036 deletions.
  1. +63 −63 NndbMetadataProvider/NndbMetadataProvider.csproj
  2. +102 −102 NndbMetadataProvider/NndbPeopleProvider.cs
  3. +24 −24 NndbMetadataProvider/Plugin.cs
  4. +36 −36 NndbMetadataProvider/Properties/AssemblyInfo.cs
  5. +26 −26 PluginInfoGenerator.sln
  6. +64 −64 PluginInfoGenerator/PluginInfoGenerator.csproj
  7. +59 −59 PluginInfoGenerator/Program.cs
  8. +36 −36 PluginInfoGenerator/Properties/AssemblyInfo.cs
  9. +4 −4 README.txt
  10. +18 −18 TestMediaBrowser/LICENSE.txt
  11. +155 −155 TestMediaBrowser/Movies.txt
  12. +35 −35 TestMediaBrowser/Properties/AssemblyInfo.cs
  13. +403 −403 TestMediaBrowser/SampleMedia/Movies/Flawless/mymovies.xml
  14. +23 −23 TestMediaBrowser/SampleMedia/TV/South Park/Season 1/02.mkv
  15. +23 −23 TestMediaBrowser/SampleMedia/TV/South Park/Season 1/03.mpg
  16. +60 −60 TestMediaBrowser/SupportingClasses/DummyItemRepository.cs
  17. +57 −57 TestMediaBrowser/SupportingClasses/DummyPersistanceObject.cs
  18. +126 −126 TestMediaBrowser/SupportingClasses/MockFolderMediaLocation.cs
  19. +45 −45 TestMediaBrowser/SupportingClasses/MockMediaLocation.cs
  20. +24 −24 TestMediaBrowser/SupportingClasses/MockMediaLocationFactory.cs
  21. +120 −120 TestMediaBrowser/TestEntityResolution.cs
  22. +23 −23 TestMediaBrowser/TestExtensions.cs
  23. +144 −144 TestMediaBrowser/TestFileBasedDictionary.cs
  24. +72 −72 TestMediaBrowser/TestFolder.cs
  25. +194 −194 TestMediaBrowser/TestIdentity.cs
  26. +18 −18 TestMediaBrowser/TestImageFromMediaLocation.cs
  27. +36 −36 TestMediaBrowser/TestInterceptor.cs
  28. +47 −47 TestMediaBrowser/TestItemSource.cs
  29. +101 −101 TestMediaBrowser/TestLibrary.cs
  30. +58 −58 TestMediaBrowser/TestLibraryImage.cs
  31. +43 −43 TestMediaBrowser/TestLogging.cs
  32. +117 −117 TestMediaBrowser/TestMediaBrowser.csproj
  33. +96 −96 TestMediaBrowser/TestMediaLocation.cs
  34. +20 −20 TestMediaBrowser/TestMetadataProvider.cs
  35. +35 −35 TestMediaBrowser/TestMockLocations.cs
  36. +49 −49 TestMediaBrowser/TestPlaybackStatus.cs
  37. +197 −197 TestMediaBrowser/TestProtectedFileStream.cs
  38. +166 −166 TestMediaBrowser/TestRepository.cs
  39. +39 −39 TestMediaBrowser/TestResolvers.cs
  40. +295 −295 TestMediaBrowser/TestSerialization.cs
  41. +158 −158 TestMediaBrowser/TestTVDBMetadata.cs
  42. +119 −119 TestMediaBrowser/TestTheMovieDB.cs
  43. +57 −57 TestMediaBrowser/TestVodCast.cs
  44. +36 −36 TestMtnFrameGrabProvider/Properties/AssemblyInfo.cs
  45. +76 −76 TestMtnFrameGrabProvider/TestMtnFrameGrabProvider.csproj
  46. +24 −24 TestMtnFrameGrabProvider/Tester.cs
  47. +122 −122 Website/about.html
  48. +137 −137 Website/about_features.html
  49. +119 −119 Website/about_team.html
  50. +89 −89 Website/download.html
  51. +115 −115 Website/gallery.html
  52. +117 −117 Website/index.html
  53. +436 −436 Website/javascript/lightbox.js
  54. +53 −53 Website/lightbox.css
  55. +125 −125 Website/style.css
View
126 NndbMetadataProvider/NndbMetadataProvider.csproj
@@ -1,64 +1,64 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{97AC0ED9-9207-4A7E-85A5-2EFEB2D35F6F}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>NndbMetadataProvider</RootNamespace>
- <AssemblyName>NndbMetadataProvider</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Web" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="NndbPeopleProvider.cs" />
- <Compile Include="Plugin.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\MediaBrowser\MediaBrowser.csproj">
- <Project>{C6B27E5F-3D83-4D71-85B9-AF83C8392721}</Project>
- <Name>MediaBrowser</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
- <PropertyGroup>
- <PostBuildEvent>copy "$(TargetPath)" C:\ProgramData\MediaBrowser\Plugins\$(TargetFileName)</PostBuildEvent>
- </PropertyGroup>
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{97AC0ED9-9207-4A7E-85A5-2EFEB2D35F6F}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>NndbMetadataProvider</RootNamespace>
+ <AssemblyName>NndbMetadataProvider</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="NndbPeopleProvider.cs" />
+ <Compile Include="Plugin.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\MediaBrowser\MediaBrowser.csproj">
+ <Project>{C6B27E5F-3D83-4D71-85B9-AF83C8392721}</Project>
+ <Name>MediaBrowser</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <PropertyGroup>
+ <PostBuildEvent>copy "$(TargetPath)" C:\ProgramData\MediaBrowser\Plugins\$(TargetFileName)</PostBuildEvent>
+ </PropertyGroup>
</Project>
View
204 NndbMetadataProvider/NndbPeopleProvider.cs
@@ -1,102 +1,102 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Web;
-using System.IO;
-using System.Net;
-using System.Text.RegularExpressions;
-using System.Diagnostics;
-using MediaBrowser.Library.Persistance;
-using MediaBrowser.Library.Entities;
-using System.Web;
-using MediaBrowser.Library.Providers.Attributes;
-using MediaBrowser.Library.Providers;
-using MediaBrowser.Library.Logging;
-
-
-namespace NndbMetadataProvider
-{
- [RequiresInternet]
- [SupportedType(typeof(Person))]
- public class NndbPeopleProvider : BaseMetadataProvider
- {
- [Persist]
- DateTime lastFetched = DateTime.MinValue;
-
- public override void Fetch() {
-
- lastFetched = DateTime.Now;
- string name = Item.Name;
- string url = "http://search.nndb.com/search/nndb.cgi?nndb=1&omenu=unspecified&query=" + HttpUtility.UrlEncode(name);
- string doc = Fetch(url);
- if (doc == null) return;
-
-
- Regex searchEx = new Regex("<a href=\"(?<fetchurl>[^\"]*)\">" + name + "</a>");
- Match m = searchEx.Match(doc);
- if (m.Success) {
- Trace.TraceInformation("Got basic info url for:" + name);
- url = m.Groups["fetchurl"].Value;
- Trace.WriteLine(url);
- doc = Fetch(url);
- if (doc != null) {
- Regex imageExpr = new Regex("<img src=\"(?<imageurl>[^\"]*)\" [^>]* alt=\"" + name + "\"");
- Match mi = imageExpr.Match(doc);
- if (mi.Success) {
- string imageUrl = url + mi.Groups["imageurl"].Value;
- Item.PrimaryImagePath = imageUrl;
- Trace.TraceInformation("Got image for:" + name);
- } else
- Trace.TraceInformation("No match for imageurl for " + name);
- }
- } else {
- Trace.TraceInformation("No match for fetchurl for " + name);
- }
- }
-
- public override bool NeedsRefresh()
- {
- // only fetch missing images
- return Item.PrimaryImagePath == null && (DateTime.Now - lastFetched).Days > 30;
- }
-
- private static object fetchLock = new object();
- private string Fetch(string url)
- {
- Logger.ReportInfo("nndb provider requesting image from: " + url);
-
- int attempt = 0;
- while (attempt < 2)
- {
- attempt++;
- try
- {
- lock (fetchLock) // nndb doesn't cope well with being hit too hard
- {
- WebRequest req = HttpWebRequest.Create(url);
- req.Timeout = 60000;
- WebResponse resp = req.GetResponse();
- try
- {
- using (Stream s = resp.GetResponseStream())
- {
- StreamReader sr = new StreamReader(s);
- return sr.ReadToEnd();
- }
- }
- finally
- {
- resp.Close();
- }
- }
- }
- catch (Exception ex)
- {
- Logger.ReportException("Error requesting: " + url, ex);
- }
-
- }
- return null;
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Web;
+using System.IO;
+using System.Net;
+using System.Text.RegularExpressions;
+using System.Diagnostics;
+using MediaBrowser.Library.Persistance;
+using MediaBrowser.Library.Entities;
+using System.Web;
+using MediaBrowser.Library.Providers.Attributes;
+using MediaBrowser.Library.Providers;
+using MediaBrowser.Library.Logging;
+
+
+namespace NndbMetadataProvider
+{
+ [RequiresInternet]
+ [SupportedType(typeof(Person))]
+ public class NndbPeopleProvider : BaseMetadataProvider
+ {
+ [Persist]
+ DateTime lastFetched = DateTime.MinValue;
+
+ public override void Fetch() {
+
+ lastFetched = DateTime.Now;
+ string name = Item.Name;
+ string url = "http://search.nndb.com/search/nndb.cgi?nndb=1&omenu=unspecified&query=" + HttpUtility.UrlEncode(name);
+ string doc = Fetch(url);
+ if (doc == null) return;
+
+
+ Regex searchEx = new Regex("<a href=\"(?<fetchurl>[^\"]*)\">" + name + "</a>");
+ Match m = searchEx.Match(doc);
+ if (m.Success) {
+ Trace.TraceInformation("Got basic info url for:" + name);
+ url = m.Groups["fetchurl"].Value;
+ Trace.WriteLine(url);
+ doc = Fetch(url);
+ if (doc != null) {
+ Regex imageExpr = new Regex("<img src=\"(?<imageurl>[^\"]*)\" [^>]* alt=\"" + name + "\"");
+ Match mi = imageExpr.Match(doc);
+ if (mi.Success) {
+ string imageUrl = url + mi.Groups["imageurl"].Value;
+ Item.PrimaryImagePath = imageUrl;
+ Trace.TraceInformation("Got image for:" + name);
+ } else
+ Trace.TraceInformation("No match for imageurl for " + name);
+ }
+ } else {
+ Trace.TraceInformation("No match for fetchurl for " + name);
+ }
+ }
+
+ public override bool NeedsRefresh()
+ {
+ // only fetch missing images
+ return Item.PrimaryImagePath == null && (DateTime.Now - lastFetched).Days > 30;
+ }
+
+ private static object fetchLock = new object();
+ private string Fetch(string url)
+ {
+ Logger.ReportInfo("nndb provider requesting image from: " + url);
+
+ int attempt = 0;
+ while (attempt < 2)
+ {
+ attempt++;
+ try
+ {
+ lock (fetchLock) // nndb doesn't cope well with being hit too hard
+ {
+ WebRequest req = HttpWebRequest.Create(url);
+ req.Timeout = 60000;
+ WebResponse resp = req.GetResponse();
+ try
+ {
+ using (Stream s = resp.GetResponseStream())
+ {
+ StreamReader sr = new StreamReader(s);
+ return sr.ReadToEnd();
+ }
+ }
+ finally
+ {
+ resp.Close();
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ Logger.ReportException("Error requesting: " + url, ex);
+ }
+
+ }
+ return null;
+ }
+ }
+}
View
48 NndbMetadataProvider/Plugin.cs
@@ -1,24 +1,24 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using MediaBrowser.Library.Plugins;
-using MediaBrowser.Library.Logging;
-using MediaBrowser.Library;
-
-namespace NndbMetadataProvider {
- class Plugin : BasePlugin {
-
- public override void Init(Kernel kernel) {
- kernel.MetadataProviderFactories.Add(MetadataProviderFactory.Get<NndbPeopleProvider>());
- }
-
- public override string Name {
- get { return "Nndb image provider"; }
- }
-
- public override string Description {
- get { return "Downloads actor and director images from nndb.com"; }
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using MediaBrowser.Library.Plugins;
+using MediaBrowser.Library.Logging;
+using MediaBrowser.Library;
+
+namespace NndbMetadataProvider {
+ class Plugin : BasePlugin {
+
+ public override void Init(Kernel kernel) {
+ kernel.MetadataProviderFactories.Add(MetadataProviderFactory.Get<NndbPeopleProvider>());
+ }
+
+ public override string Name {
+ get { return "Nndb image provider"; }
+ }
+
+ public override string Description {
+ get { return "Downloads actor and director images from nndb.com"; }
+ }
+ }
+}
View
72 NndbMetadataProvider/Properties/AssemblyInfo.cs
@@ -1,36 +1,36 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("NndbMetadataProvider")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("NndbMetadataProvider")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("8b060076-df54-46f8-95f9-75135e3be100")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("NndbMetadataProvider")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("NndbMetadataProvider")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("8b060076-df54-46f8-95f9-75135e3be100")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
52 PluginInfoGenerator.sln
@@ -1,26 +1,26 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PluginInfoGenerator", "PluginInfoGenerator\PluginInfoGenerator.csproj", "{9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser", "MediaBrowser\MediaBrowser.csproj", "{C6B27E5F-3D83-4D71-85B9-AF83C8392721}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Release|Any CPU.Build.0 = Release|Any CPU
- {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PluginInfoGenerator", "PluginInfoGenerator\PluginInfoGenerator.csproj", "{9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser", "MediaBrowser\MediaBrowser.csproj", "{C6B27E5F-3D83-4D71-85B9-AF83C8392721}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C6B27E5F-3D83-4D71-85B9-AF83C8392721}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
128 PluginInfoGenerator/PluginInfoGenerator.csproj
@@ -1,65 +1,65 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>PluginInfoGenerator</RootNamespace>
- <AssemblyName>PluginInfoGenerator</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Program.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\MediaBrowser\MediaBrowser.csproj">
- <Project>{C6B27E5F-3D83-4D71-85B9-AF83C8392721}</Project>
- <Name>MediaBrowser</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{9DC07C9F-11C2-43AB-8EDF-2CD8ABDB3703}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>PluginInfoGenerator</RootNamespace>
+ <AssemblyName>PluginInfoGenerator</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\MediaBrowser\MediaBrowser.csproj">
+ <Project>{C6B27E5F-3D83-4D71-85B9-AF83C8392721}</Project>
+ <Name>MediaBrowser</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
118 PluginInfoGenerator/Program.cs
@@ -1,59 +1,59 @@
-/*
- * This program is used to generate a plugin info xml file
- * from a directory containing plugins
- */
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.IO;
-using MediaBrowser.Library.Plugins;
-using System.Xml;
-
-namespace PluginInfoGenerator {
- class Program {
-
- const string PLUGIN_INFO = "plugin_info.xml";
-
- static void Main(string[] args) {
- if (args.Length != 1 || !Directory.Exists(args[0])) {
- Usage();
- return;
- }
- string dir = args[0];
-
- XmlTextWriter writer = new XmlTextWriter(PLUGIN_INFO ,Encoding.UTF8);
- writer.Formatting = Formatting.Indented;
- writer.Indentation = 3;
- writer.WriteStartElement("Plugins");
-
- foreach (var file in Directory.GetFiles(dir)) {
- try {
- var plugin = Plugin.FromFile(file, false);
-
- writer.WriteStartElement("Plugin");
- writer.WriteElementString("Version", plugin.Version.ToString());
- writer.WriteElementString("Name", plugin.Name);
- writer.WriteElementString("Description", plugin.Description);
- writer.WriteElementString("Filename", Path.GetFileName(file));
- writer.WriteEndElement();
-
- } catch (Exception e) {
- Console.WriteLine("Failed to get infor for {0} : {1}", file, e);
- }
- }
-
- writer.WriteEndElement();
- writer.Close();
-
- Console.WriteLine("Wrote data to " + PLUGIN_INFO);
-
- }
-
- private static void Usage() {
- Console.WriteLine("This program will generate a plugin info file from a directory containing plugins");
- Console.WriteLine("Usage: PluginInfoGenerator <Path>");
- }
- }
-}
+/*
+ * This program is used to generate a plugin info xml file
+ * from a directory containing plugins
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+using MediaBrowser.Library.Plugins;
+using System.Xml;
+
+namespace PluginInfoGenerator {
+ class Program {
+
+ const string PLUGIN_INFO = "plugin_info.xml";
+
+ static void Main(string[] args) {
+ if (args.Length != 1 || !Directory.Exists(args[0])) {
+ Usage();
+ return;
+ }
+ string dir = args[0];
+
+ XmlTextWriter writer = new XmlTextWriter(PLUGIN_INFO ,Encoding.UTF8);
+ writer.Formatting = Formatting.Indented;
+ writer.Indentation = 3;
+ writer.WriteStartElement("Plugins");
+
+ foreach (var file in Directory.GetFiles(dir)) {
+ try {
+ var plugin = Plugin.FromFile(file, false);
+
+ writer.WriteStartElement("Plugin");
+ writer.WriteElementString("Version", plugin.Version.ToString());
+ writer.WriteElementString("Name", plugin.Name);
+ writer.WriteElementString("Description", plugin.Description);
+ writer.WriteElementString("Filename", Path.GetFileName(file));
+ writer.WriteEndElement();
+
+ } catch (Exception e) {
+ Console.WriteLine("Failed to get infor for {0} : {1}", file, e);
+ }
+ }
+
+ writer.WriteEndElement();
+ writer.Close();
+
+ Console.WriteLine("Wrote data to " + PLUGIN_INFO);
+
+ }
+
+ private static void Usage() {
+ Console.WriteLine("This program will generate a plugin info file from a directory containing plugins");
+ Console.WriteLine("Usage: PluginInfoGenerator <Path>");
+ }
+ }
+}
View
72 PluginInfoGenerator/Properties/AssemblyInfo.cs
@@ -1,36 +1,36 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("PluginInfoGenerator")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("PluginInfoGenerator")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("d699971d-1a61-4f55-886c-e0fa6c18a697")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("PluginInfoGenerator")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("PluginInfoGenerator")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("d699971d-1a61-4f55-886c-e0fa6c18a697")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
8 README.txt
@@ -1,4 +1,4 @@
-Compiling the code: You are going to need at least visual studio 2008. To compile the installer you will need WiX.
-
-Bootstrapper : Contains a project for bootstrapping the installer. This project streamlines installing the 3.5 .Net framework
-Installer: The installer project, note it can also be run using msbuild (requires wix)
+Compiling the code: You are going to need at least visual studio 2008. To compile the installer you will need WiX.
+
+Bootstrapper : Contains a project for bootstrapping the installer. This project streamlines installing the 3.5 .Net framework
+Installer: The installer project, note it can also be run using msbuild (requires wix)
View
36 TestMediaBrowser/LICENSE.txt
@@ -1,18 +1,18 @@
-(This license applies to all the unit tests)
-
-Copyright (c) 2005-2009 Sam Saffron
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+(This license applies to all the unit tests)
+
+Copyright (c) 2005-2009 Sam Saffron
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
View
310 TestMediaBrowser/Movies.txt
@@ -1,155 +1,155 @@
-\\mediaserver\jon\Alive
-\\mediaserver\jon\The Dark Knight
-\\mediaserver\jon\Babel
-\\mediaserver\jon\Bean
-\\mediaserver\jon\Beowulf
-\\mediaserver\jon\Casino
-\\mediaserver\jon\Commando
-\\mediaserver\jon\Conspiracy
-\\mediaserver\jon\Daredevil
-\\mediaserver\jon\Deception
-\\mediaserver\jon\Dragonheart
-\\mediaserver\jon\E.T. The Extra-Terrestrial
-\\mediaserver\jon\Face Off
-\\mediaserver\media\movies\A.I. Artificial Intelligence
-\\mediaserver\media\movies\Captain Corelli's Mandolin
-\\mediaserver\media\movies\Finding Nemo (2003)
-\\mediaserver\media\movies\Ghandi
-\\mediaserver\media\movies\Legally Blonde 2 Red White and Blonde
-\\mediaserver\media\movies\Minority Report
-\\mediaserver\media\movies\Out Of Time
-\\mediaserver\media\movies\The Girl Next Door (2004)
-\\mediaserver\media\movies\Vanilla Sky
-\\mediaserver\media\movies\13 Going On 30 (2004)
-\\mediaserver\media\movies\A Beautiful Mind (2001)
-\\mediaserver\media\movies\An Inconvenient Truth (2006)
-\\mediaserver\media\movies\Atonement (2007)
-\\mediaserver\media\movies\Brick (2005)
-\\mediaserver\media\movies\Brokeback Mountain (2005)
-\\mediaserver\media\movies\Casino Royale (2006)
-\\mediaserver\media\movies\Charlotte's Web (2006)
-\\mediaserver\media\movies\Chicken Little (2005)
-\\mediaserver\media\movies\Crash (2004)
-\\mediaserver\media\movies\Crouching Tiger Hidden Dragon
-\\mediaserver\media\movies\Definitely Maybe (2008)
-\\mediaserver\media\movies\Deja Vu
-\\mediaserver\media\movies\Derailed (2006)
-\\mediaserver\media\movies\Down With Love (2003)
-\\mediaserver\media\movies\Dream Girls (2006)
-\\mediaserver\media\movies\Event Horizon
-\\mediaserver\media\movies\Fargo (1996)
-\\mediaserver\media\movies\Firewall (2006)
-\\mediaserver\media\movies\Freaky Friday (2003)
-\\mediaserver\media\movies\Fun With Dick And Jane (2005)
-\\mediaserver\media\movies\Good Will Hunting (1998)
-\\mediaserver\media\movies\Honey (2003)
-\\mediaserver\media\movies\Inside Man (2006)
-\\mediaserver\media\movies\Just Friends (2005)
-\\mediaserver\media\movies\Just Like Heaven (2005)
-\\mediaserver\media\movies\Kill Bill Vol. 1 [Uncut] (2003)
-\\mediaserver\media\movies\Kill Bill Vol. 2 (2004)
-\\mediaserver\media\movies\Knocked Up (2006).HD
-\\mediaserver\media\movies\Layer Cake (2004)
-\\mediaserver\media\movies\Live Free or Die Hard (2007).BR
-\\mediaserver\media\movies\Lost In Translation (2003)
-\\mediaserver\media\movies\Matrix Revolutions (2003)
-\\mediaserver\media\movies\Mean Girls (2004)
-\\mediaserver\media\movies\Memoirs Of A Geisha (2005)
-\\mediaserver\media\movies\Mercury Rising
-\\mediaserver\media\movies\Miss Potter (2006)
-\\mediaserver\media\movies\Mona.Lisa.Smile (2003)
-\\mediaserver\media\movies\Mr and Mrs Smith (2005)
-\\mediaserver\media\movies\Ocean's Eleven (2001)
-\\mediaserver\media\movies\Ocean's Twelve (2004)
-\\mediaserver\media\movies\Poseidon (2006)
-\\mediaserver\media\movies\Proof (2005)
-\\mediaserver\media\movies\Ratatouille (2007).BR
-\\mediaserver\media\movies\Reservoir Dogs (1992)
-\\mediaserver\media\movies\Resident Evil
-\\mediaserver\media\movies\Saving Private Ryan
-\\mediaserver\media\movies\Scary Movie 3
-\\mediaserver\media\movies\Se7en (1995)
-\\mediaserver\media\movies\Serenity (2005)
-\\mediaserver\media\movies\She's The Man (2006)
-\\mediaserver\media\movies\Silent Hill (2006)
-\\mediaserver\media\movies\Sin City
-\\mediaserver\media\movies\Sixth Sense
-\\mediaserver\media\movies\Speed
-\\mediaserver\media\movies\Star Trek - Generations (1994)
-\\mediaserver\media\movies\Star Wars Episode I The Phantom Menace
-\\mediaserver\media\movies\Star Wars Episode II Attack Of The Clones
-\\mediaserver\media\movies\Star Wars Episode IV A New Hope
-\\mediaserver\media\movies\Star Wars Episode V The Empire Strikes Back
-\\mediaserver\media\movies\Star Wars Episode VI Return Of The Jedi
-\\mediaserver\media\movies\Taxi Driver (1976)
-\\mediaserver\media\movies\Terminator 2 Judgment Day
-\\mediaserver\media\movies\The Abyss
-\\mediaserver\media\movies\The Animatrix
-\\mediaserver\media\movies\The Assassination Of Jesse James By The Coward Robert Redford (2007).BR
-\\mediaserver\media\movies\The Bank Job (2008).BR
-\\mediaserver\media\movies\The Bourne Identity (2002)
-\\mediaserver\media\movies\The Bourne Identity (2002).HD
-\\mediaserver\media\movies\The Bourne Supremacy (2004)
-\\mediaserver\media\movies\The Bourne Ultimatum (2007)
-\\mediaserver\media\movies\The Da Vinci Code (2006)
-\\mediaserver\media\movies\The Day After Tomorrow
-\\mediaserver\media\movies\The Devil Wears Prada (2006)
-\\mediaserver\media\movies\The History Boys (2006)
-\\mediaserver\media\movies\The Incredibles (2004)
-\\mediaserver\media\movies\The Incredibles (2004).HD
-\\mediaserver\media\movies\The Lake House (2006)
-\\mediaserver\media\movies\The Last Emperor
-\\mediaserver\media\movies\The Last Samurai (2003)
-\\mediaserver\media\movies\The Matrix
-\\mediaserver\media\movies\The Matrix Reloaded
-\\mediaserver\media\movies\The Pursuit of Happyness(2006)
-\\mediaserver\media\movies\The Queen (2006)
-\\mediaserver\media\movies\The Savages (2007)
-\\mediaserver\media\movies\The Sentinel (2006)
-\\mediaserver\media\movies\The Simpsons Movie (2007)
-\\mediaserver\media\movies\There Will Be Blood (2007).BR
-\\mediaserver\media\movies\Titanic (1997)
-\\mediaserver\media\movies\V For Vendetta (2005)
-\\mediaserver\media\movies\Vanilla Sky (2001)
-\\mediaserver\media\movies\Wedding Crashers (2005)
-\\mediaserver\media\movies\X-Men The Last Stand (2006)
-\\mediaserver\media\movies\Yours Mine And Ours (2005)
-\\mediaserver\media\movies\American Pie 2
-\\mediaserver\media\movies\Bridget Jones's Diary
-\\mediaserver\media\movies\Bruce Almighty
-\\mediaserver\media\movies\Charlie's Angels
-\\mediaserver\media\movies\Chasing Amy
-\\mediaserver\media\movies\Chicken Run
-\\mediaserver\media\movies\Crazy Beautiful
-\\mediaserver\media\movies\Cruel Intentions
-\\mediaserver\media\movies\Embrace of the Vampire
-\\mediaserver\media\movies\Entrapment
-\\mediaserver\media\movies\Fast and the Furious
-\\mediaserver\media\movies\Final Fantasy
-\\mediaserver\media\movies\Gone in sixty seconds
-\\mediaserver\media\movies\Hannibal
-\\mediaserver\media\movies\Harry Potter
-\\mediaserver\media\movies\Heartbreakers
-\\mediaserver\media\movies\Legally Blonde
-\\mediaserver\media\movies\Legally Blonde 2 Red, White and Blonde(2003)
-\\mediaserver\media\movies\Miss Congeniality
-\\mediaserver\media\movies\Moulin Rouge
-\\mediaserver\media\movies\Not Another Teen Movie
-\\mediaserver\media\movies\One Night At McCool's
-\\mediaserver\media\movies\Planet of the Apes (2001)
-\\mediaserver\media\movies\Rush Hour 2
-\\mediaserver\media\movies\Scooby-Doo (2002)
-\\mediaserver\media\movies\Serendipity
-\\mediaserver\media\movies\Shrek
-\\mediaserver\media\movies\Shrek 2
-\\mediaserver\media\movies\Spiderman (2002)
-\\mediaserver\media\movies\The Emperor's New Groove
-\\mediaserver\media\movies\The Gift
-\\mediaserver\media\movies\The Mummy Returns
-\\mediaserver\media\movies\The One
-\\mediaserver\media\movies\The Usual Suspects
-\\mediaserver\media\movies\The Way Of The Gun
-\\mediaserver\media\movies\There's Something About Mary
-\\mediaserver\media\movies\Toy story 2
-\\mediaserver\media\movies\What Women Want
-\\mediaserver\media\movies\X-Men
+\\mediaserver\jon\Alive
+\\mediaserver\jon\The Dark Knight
+\\mediaserver\jon\Babel
+\\mediaserver\jon\Bean
+\\mediaserver\jon\Beowulf
+\\mediaserver\jon\Casino
+\\mediaserver\jon\Commando
+\\mediaserver\jon\Conspiracy
+\\mediaserver\jon\Daredevil
+\\mediaserver\jon\Deception
+\\mediaserver\jon\Dragonheart
+\\mediaserver\jon\E.T. The Extra-Terrestrial
+\\mediaserver\jon\Face Off
+\\mediaserver\media\movies\A.I. Artificial Intelligence
+\\mediaserver\media\movies\Captain Corelli's Mandolin
+\\mediaserver\media\movies\Finding Nemo (2003)
+\\mediaserver\media\movies\Ghandi
+\\mediaserver\media\movies\Legally Blonde 2 Red White and Blonde
+\\mediaserver\media\movies\Minority Report
+\\mediaserver\media\movies\Out Of Time
+\\mediaserver\media\movies\The Girl Next Door (2004)
+\\mediaserver\media\movies\Vanilla Sky
+\\mediaserver\media\movies\13 Going On 30 (2004)
+\\mediaserver\media\movies\A Beautiful Mind (2001)
+\\mediaserver\media\movies\An Inconvenient Truth (2006)
+\\mediaserver\media\movies\Atonement (2007)
+\\mediaserver\media\movies\Brick (2005)
+\\mediaserver\media\movies\Brokeback Mountain (2005)
+\\mediaserver\media\movies\Casino Royale (2006)
+\\mediaserver\media\movies\Charlotte's Web (2006)
+\\mediaserver\media\movies\Chicken Little (2005)
+\\mediaserver\media\movies\Crash (2004)
+\\mediaserver\media\movies\Crouching Tiger Hidden Dragon
+\\mediaserver\media\movies\Definitely Maybe (2008)
+\\mediaserver\media\movies\Deja Vu
+\\mediaserver\media\movies\Derailed (2006)
+\\mediaserver\media\movies\Down With Love (2003)
+\\mediaserver\media\movies\Dream Girls (2006)
+\\mediaserver\media\movies\Event Horizon
+\\mediaserver\media\movies\Fargo (1996)
+\\mediaserver\media\movies\Firewall (2006)
+\\mediaserver\media\movies\Freaky Friday (2003)
+\\mediaserver\media\movies\Fun With Dick And Jane (2005)
+\\mediaserver\media\movies\Good Will Hunting (1998)
+\\mediaserver\media\movies\Honey (2003)
+\\mediaserver\media\movies\Inside Man (2006)
+\\mediaserver\media\movies\Just Friends (2005)
+\\mediaserver\media\movies\Just Like Heaven (2005)
+\\mediaserver\media\movies\Kill Bill Vol. 1 [Uncut] (2003)
+\\mediaserver\media\movies\Kill Bill Vol. 2 (2004)
+\\mediaserver\media\movies\Knocked Up (2006).HD
+\\mediaserver\media\movies\Layer Cake (2004)
+\\mediaserver\media\movies\Live Free or Die Hard (2007).BR
+\\mediaserver\media\movies\Lost In Translation (2003)
+\\mediaserver\media\movies\Matrix Revolutions (2003)
+\\mediaserver\media\movies\Mean Girls (2004)
+\\mediaserver\media\movies\Memoirs Of A Geisha (2005)
+\\mediaserver\media\movies\Mercury Rising
+\\mediaserver\media\movies\Miss Potter (2006)
+\\mediaserver\media\movies\Mona.Lisa.Smile (2003)
+\\mediaserver\media\movies\Mr and Mrs Smith (2005)
+\\mediaserver\media\movies\Ocean's Eleven (2001)
+\\mediaserver\media\movies\Ocean's Twelve (2004)
+\\mediaserver\media\movies\Poseidon (2006)
+\\mediaserver\media\movies\Proof (2005)
+\\mediaserver\media\movies\Ratatouille (2007).BR
+\\mediaserver\media\movies\Reservoir Dogs (1992)
+\\mediaserver\media\movies\Resident Evil
+\\mediaserver\media\movies\Saving Private Ryan
+\\mediaserver\media\movies\Scary Movie 3
+\\mediaserver\media\movies\Se7en (1995)
+\\mediaserver\media\movies\Serenity (2005)
+\\mediaserver\media\movies\She's The Man (2006)
+\\mediaserver\media\movies\Silent Hill (2006)
+\\mediaserver\media\movies\Sin City
+\\mediaserver\media\movies\Sixth Sense
+\\mediaserver\media\movies\Speed
+\\mediaserver\media\movies\Star Trek - Generations (1994)
+\\mediaserver\media\movies\Star Wars Episode I The Phantom Menace
+\\mediaserver\media\movies\Star Wars Episode II Attack Of The Clones
+\\mediaserver\media\movies\Star Wars Episode IV A New Hope
+\\mediaserver\media\movies\Star Wars Episode V The Empire Strikes Back
+\\mediaserver\media\movies\Star Wars Episode VI Return Of The Jedi
+\\mediaserver\media\movies\Taxi Driver (1976)
+\\mediaserver\media\movies\Terminator 2 Judgment Day
+\\mediaserver\media\movies\The Abyss
+\\mediaserver\media\movies\The Animatrix
+\\mediaserver\media\movies\The Assassination Of Jesse James By The Coward Robert Redford (2007).BR
+\\mediaserver\media\movies\The Bank Job (2008).BR
+\\mediaserver\media\movies\The Bourne Identity (2002)
+\\mediaserver\media\movies\The Bourne Identity (2002).HD
+\\mediaserver\media\movies\The Bourne Supremacy (2004)
+\\mediaserver\media\movies\The Bourne Ultimatum (2007)
+\\mediaserver\media\movies\The Da Vinci Code (2006)
+\\mediaserver\media\movies\The Day After Tomorrow
+\\mediaserver\media\movies\The Devil Wears Prada (2006)
+\\mediaserver\media\movies\The History Boys (2006)
+\\mediaserver\media\movies\The Incredibles (2004)
+\\mediaserver\media\movies\The Incredibles (2004).HD
+\\mediaserver\media\movies\The Lake House (2006)
+\\mediaserver\media\movies\The Last Emperor
+\\mediaserver\media\movies\The Last Samurai (2003)
+\\mediaserver\media\movies\The Matrix
+\\mediaserver\media\movies\The Matrix Reloaded
+\\mediaserver\media\movies\The Pursuit of Happyness(2006)
+\\mediaserver\media\movies\The Queen (2006)
+\\mediaserver\media\movies\The Savages (2007)
+\\mediaserver\media\movies\The Sentinel (2006)
+\\mediaserver\media\movies\The Simpsons Movie (2007)
+\\mediaserver\media\movies\There Will Be Blood (2007).BR
+\\mediaserver\media\movies\Titanic (1997)
+\\mediaserver\media\movies\V For Vendetta (2005)
+\\mediaserver\media\movies\Vanilla Sky (2001)
+\\mediaserver\media\movies\Wedding Crashers (2005)
+\\mediaserver\media\movies\X-Men The Last Stand (2006)
+\\mediaserver\media\movies\Yours Mine And Ours (2005)
+\\mediaserver\media\movies\American Pie 2
+\\mediaserver\media\movies\Bridget Jones's Diary
+\\mediaserver\media\movies\Bruce Almighty
+\\mediaserver\media\movies\Charlie's Angels
+\\mediaserver\media\movies\Chasing Amy
+\\mediaserver\media\movies\Chicken Run
+\\mediaserver\media\movies\Crazy Beautiful
+\\mediaserver\media\movies\Cruel Intentions
+\\mediaserver\media\movies\Embrace of the Vampire
+\\mediaserver\media\movies\Entrapment
+\\mediaserver\media\movies\Fast and the Furious
+\\mediaserver\media\movies\Final Fantasy
+\\mediaserver\media\movies\Gone in sixty seconds
+\\mediaserver\media\movies\Hannibal
+\\mediaserver\media\movies\Harry Potter
+\\mediaserver\media\movies\Heartbreakers
+\\mediaserver\media\movies\Legally Blonde
+\\mediaserver\media\movies\Legally Blonde 2 Red, White and Blonde(2003)
+\\mediaserver\media\movies\Miss Congeniality
+\\mediaserver\media\movies\Moulin Rouge
+\\mediaserver\media\movies\Not Another Teen Movie
+\\mediaserver\media\movies\One Night At McCool's
+\\mediaserver\media\movies\Planet of the Apes (2001)
+\\mediaserver\media\movies\Rush Hour 2
+\\mediaserver\media\movies\Scooby-Doo (2002)
+\\mediaserver\media\movies\Serendipity
+\\mediaserver\media\movies\Shrek
+\\mediaserver\media\movies\Shrek 2
+\\mediaserver\media\movies\Spiderman (2002)
+\\mediaserver\media\movies\The Emperor's New Groove
+\\mediaserver\media\movies\The Gift
+\\mediaserver\media\movies\The Mummy Returns
+\\mediaserver\media\movies\The One
+\\mediaserver\media\movies\The Usual Suspects
+\\mediaserver\media\movies\The Way Of The Gun
+\\mediaserver\media\movies\There's Something About Mary
+\\mediaserver\media\movies\Toy story 2
+\\mediaserver\media\movies\What Women Want
+\\mediaserver\media\movies\X-Men
View
70 TestMediaBrowser/Properties/AssemblyInfo.cs
@@ -1,35 +1,35 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("TestMediaBrowser")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("TestMediaBrowser")]
-[assembly: AssemblyCopyright("Copyright © 2008")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM componenets. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("0cc33450-4452-46d0-86d7-e3e5c25caf5b")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("TestMediaBrowser")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("TestMediaBrowser")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM componenets. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("0cc33450-4452-46d0-86d7-e3e5c25caf5b")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
806 TestMediaBrowser/SampleMedia/Movies/Flawless/mymovies.xml
@@ -1,404 +1,404 @@
-<Title>
- <ID>62</ID>
- <WebServiceID>a14d4892-f92c-4ec0-b8ba-4eed8416258d</WebServiceID>
- <CollectionNumber>58</CollectionNumber>
- <Type>DVD</Type>
- <Barcode>027616840226</Barcode>
- <Country>United States</Country>
- <LocalTitle>Flawless</LocalTitle>
- <OriginalTitle>Flawless</OriginalTitle>
- <SortTitle>Flawless</SortTitle>
- <Edition>
- </Edition>
- <AspectRatio>
- </AspectRatio>
- <VideoStandard>
- </VideoStandard>
- <ProductionYear>1999</ProductionYear>
- <ReleaseDate>4/25/2000</ReleaseDate>
- <RunningTime>111</RunningTime>
- <TagLine />
- <Description><![CDATA[]]></Description>
- <ExtraFeatures NotPresent="False"><![CDATA[]]></ExtraFeatures>
- <ParentalRating>
- <Value>6</Value>
- <Description>
- </Description>
- </ParentalRating>
- <DataProvider>
- </DataProvider>
- <DataProviderId>
- </DataProviderId>
- <ImportSource />
- <ImportId />
- <Covers>
- <Front>mymovies-front.jpg</Front>
- <Back />
- </Covers>
- <DataChanged>8/8/2007 6:30:43 PM</DataChanged>
- <CoversChanged>6/21/2007 4:21:10 PM</CoversChanged>
- <LockData>False</LockData>
- <LockCovers>False</LockCovers>
- <Added>9/8/2007 8:17:20 PM</Added>
- <RecordChanged>9/8/2007 8:17:20 PM</RecordChanged>
- <Categories />
- <Genres />
- <AudioTracks />
- <Subtitles NotPresent="False" />
- <Studios />
- <Discs>
- <Disc>
- <DiscIdStored>
- </DiscIdStored>
- <DoubleSided>False</DoubleSided>
- <Name>
- </Name>
- <DiscIdSideA>
- </DiscIdSideA>
- <DiscIdSideB>
- </DiscIdSideB>
- <LocationSideA>.</LocationSideA>
- <LocationTypeSideA>1</LocationTypeSideA>
- <LocationSideB>
- </LocationSideB>
- <LocationTypeSideB>-1</LocationTypeSideB>
- </Disc>
- <Disc>
- <DiscIdStored>
- </DiscIdStored>
- <DoubleSided>False</DoubleSided>
- <Name>Disc 1</Name>
- <DiscIdSideA>
- </DiscIdSideA>
- <DiscIdSideB>
- </DiscIdSideB>
- <LocationSideA>
- </LocationSideA>
- <LocationTypeSideA>3</LocationTypeSideA>
- <LocationSideB>
- </LocationSideB>
- <LocationTypeSideB>-1</LocationTypeSideB>
- </Disc>
- </Discs>
- <Persons ActorsComplete="False">
- <Person>
- <Name>Robert de Niro</Name>
- <Type>Actor</Type>
- <Role>Walt Koontz</Role>
- </Person>
- <Person>
- <Name>Philip Seymour Hoffman</Name>
- <Type>Actor</Type>
- <Role>Rusty Zimmerman</Role>
- </Person>
- <Person>
- <Name>Barry Miller</Name>
- <Type>Actor</Type>
- <Role>Leonard Wilcox</Role>
- </Person>
- <Person>
- <Name>Chris Bauer</Name>
- <Type>Actor</Type>
- <Role>Jacko</Role>
- </Person>
- <Person>
- <Name>Skipp Sudduth</Name>
- <Type>Actor</Type>
- <Role>Tommy Walsh</Role>
- </Person>
- <Person>
- <Name>Wilson Jermaine Heredia</Name>
- <Type>Actor</Type>
- <Role>Cha-Cha</Role>
- </Person>
- <Person>
- <Name>Nashom Benjamin</Name>
- <Type>Actor</Type>
- <Role>Amazing Grace</Role>
- </Person>
- <Person>
- <Name>Scott Allen Cooper</Name>
- <Type>Actor</Type>
- <Role>Ivana</Role>
- </Person>
- <Person>
- <Name>Rory Cochrane</Name>
- <Type>Actor</Type>
- <Role>Pogo</Role>
- </Person>
- <Person>
- <Name>Daphne Rubin-Vega</Name>
- <Type>Actor</Type>
- <Role>Tia</Role>
- </Person>
- <Person>
- <Name>Vincent Laresca</Name>
- <Type>Actor</Type>
- <Role>Raymond Camacho</Role>
- </Person>
- <Person>
- <Name>Karina Arroyave</Name>
- <Type>Actor</Type>
- <Role>Amber Garcia Sanchez</Role>
- </Person>
- <Person>
- <Name>John Enos III</Name>
- <Type>Actor</Type>
- <Role>Sonny (as John Enos)</Role>
- </Person>
- <Person>
- <Name>Jude Ciccolella</Name>
- <Type>Actor</Type>
- <Role>Detective Noonan</Role>
- </Person>
- <Person>
- <Name>Mina Bern</Name>
- <Type>Actor</Type>
- <Role>Mrs. Spivak</Role>
- </Person>
- <Person>
- <Name>Wanda De Jesus</Name>
- <Type>Actor</Type>
- <Role>Karen</Role>
- </Person>
- <Person>
- <Name>Madhur Jaffrey</Name>
- <Type>Actor</Type>
- <Role>Dr. Nirmala</Role>
- </Person>
- <Person>
- <Name>Mark Margolis</Name>
- <Type>Actor</Type>
- <Role>Vinnie</Role>
- </Person>
- <Person>
- <Name>Shiek Mahmud-Bey</Name>
- <Type>Actor</Type>
- <Role>Vance</Role>
- </Person>
- <Person>
- <Name>Luis Saguar</Name>
- <Type>Actor</Type>
- <Role>Mr. Z</Role>
- </Person>
- <Person>
- <Name>Kyle Rivers</Name>
- <Type>Actor</Type>
- <Role>LeShaun Williams</Role>
- </Person>
- <Person>
- <Name>Sammy Rhee</Name>
- <Type>Actor</Type>
- <Role>Mr. Pim</Role>
- </Person>
- <Person>
- <Name>Hyunsoo Lee</Name>
- <Type>Actor</Type>
- <Role>Mrs. Pim</Role>
- </Person>
- <Person>
- <Name>Richie LaMontagne</Name>
- <Type>Actor</Type>
- <Role>Carmine</Role>
- </Person>
- <Person>
- <Name>Penny Balfour</Name>
- <Type>Actor</Type>
- <Role>Cristal</Role>
- </Person>
- <Person>
- <Name>Winter B. Uhlarik</Name>
- <Type>Actor</Type>
- <Role>Tasha</Role>
- </Person>
- <Person>
- <Name>Raven O.</Name>
- <Type>Actor</Type>
- <Role>Notorious F.A.G.</Role>
- </Person>
- <Person>
- <Name>Joseph Arias</Name>
- <Type>Actor</Type>
- <Role>Stormy (as Joey Arias)</Role>
- </Person>
- <Person>
- <Name>Kent Fuher</Name>
- <Type>Actor</Type>
- <Role>Gypsy (as Jackie Beat)</Role>
- </Person>
- <Person>
- <Name>Blake Willett</Name>
- <Type>Actor</Type>
- <Role>Cop</Role>
- </Person>
- <Person>
- <Name>Ingrid Rivera</Name>
- <Type>Actor</Type>
- <Role>Cop</Role>
- </Person>
- <Person>
- <Name>Craig Braun</Name>
- <Type>Actor</Type>
- <Role>Paulie</Role>
- </Person>
- <Person>
- <Name>John Doumanian</Name>
- <Type>Actor</Type>
- <Role>Mr. Terzola</Role>
- </Person>
- <Person>
- <Name>Melissa Osborn</Name>
- <Type>Actor</Type>
- <Role>Tourist</Role>
- </Person>
- <Person>
- <Name>John Contratti</Name>
- <Type>Actor</Type>
- <Role>Customer</Role>
- </Person>
- <Person>
- <Name>Stacy Highsmith</Name>
- <Type>Actor</Type>
- <Role>Denise</Role>
- </Person>
- <Person>
- <Name>Rod Rodriguez</Name>
- <Type>Actor</Type>
- <Role>Lesbian</Role>
- </Person>
- <Person>
- <Name>Alice Williams</Name>
- <Type>Actor</Type>
- <Role>Lesbian</Role>
- </Person>
- <Person>
- <Name>Antonette Schwartzberg</Name>
- <Type>Actor</Type>
- <Role>Mrs. Terzola</Role>
- </Person>
- <Person>
- <Name>Hamilton De Oliveira</Name>
- <Type>Actor</Type>
- <Role>Hotel Janitor</Role>
- </Person>
- <Person>
- <Name>Logan McCall</Name>
- <Type>Actor</Type>
- <Role>EMS Technician</Role>
- </Person>
- <Person>
- <Name>John Mack</Name>
- <Type>Actor</Type>
- <Role>EMS Technician (as John E. Mack)</Role>
- </Person>
- <Person>
- <Name>John Corcoran</Name>
- <Type>Actor</Type>
- <Role>Physical Therapist (as John R. Corcoran)</Role>
- </Person>
- <Person>
- <Name>Matt Merchant</Name>
- <Type>Actor</Type>
- <Role>Man in Crowd</Role>
- </Person>
- <Person>
- <Name>Kevin Aviance</Name>
- <Type>Actor</Type>
- <Role>Singer</Role>
- </Person>
- <Person>
- <Name>Charles Ching</Name>
- <Type>Actor</Type>
- <Role>Singer (as Coco LaChine)</Role>
- </Person>
- <Person>
- <Name>José Ángel García</Name>
- <Type>Actor</Type>
- <Role>Singer</Role>
- </Person>
- <Person>
- <Name>Bruce Roberts</Name>
- <Type>Actor</Type>
- <Role>Singer</Role>
- </Person>
- <Person>
- <Name>Al Marz</Name>
- <Type>Actor</Type>
- <Role>Cristal's Boyfriend</Role>
- </Person>
- <Person>
- <Name>Michelle Robinson</Name>
- <Type>Actor</Type>
- <Role>Dancer</Role>
- </Person>
- <Person>
- <Name>Nina Sonja Peterson</Name>
- <Type>Actor</Type>
- <Role>Sally</Role>
- </Person>
- <Person>
- <Name>Mitchell Lichtenstein</Name>
- <Type>Actor</Type>
- <Role>Gay Republican Spokesperson</Role>
- </Person>
- <Person>
- <Name>John Fink</Name>
- <Type>Actor</Type>
- <Role>Gay Republican Lawyer</Role>
- </Person>
- <Person>
- <Name>Bret Kropp</Name>
- <Type>Actor</Type>
- <Role>Drag Queen</Role>
- </Person>
- <Person>
- <Name>Cooley</Name>
- <Type>Actor</Type>
- <Role>Cop</Role>
- </Person>
- <Person>
- <Name>Constance Boardman</Name>
- <Type>Actor</Type>
- <Role>Reporter</Role>
- </Person>
- <Person>
- <Name>Lucy Cerezo-Scully</Name>
- <Type>Actor</Type>
- <Role>Paramedic</Role>
- </Person>
- <Person>
- <Name>Al Thompson</Name>
- <Type>Actor</Type>
- <Role>Paramedic</Role>
- </Person>
- <Person>
- <Name>Jackie Beat</Name>
- <Type>Actor</Type>
- <Role>Drag queen</Role>
- </Person>
- <Person>
- <Name>Larry Marx</Name>
- <Type>Actor</Type>
- <Role>Bar Patron</Role>
- </Person>
- <Person>
- <Name>Christian Boeving</Name>
- <Type>Actor</Type>
- <Role>Max (uncredited)</Role>
- </Person>
- <Person>
- <Name>Michael Harkins</Name>
- <Type>Actor</Type>
- <Role>Drag Pageant Contestant (uncredited)</Role>
- </Person>
- <Person>
- <Name>Victor Rasuk</Name>
- <Type>Actor</Type>
- <Role>Kid from the Neighborhood (uncredited)</Role>
- </Person>
- <Person>
- <Name>Joel Schumacher</Name>
- <Type>Director</Type>
- </Person>
- </Persons>
+<Title>
+ <ID>62</ID>
+ <WebServiceID>a14d4892-f92c-4ec0-b8ba-4eed8416258d</WebServiceID>
+ <CollectionNumber>58</CollectionNumber>
+ <Type>DVD</Type>
+ <Barcode>027616840226</Barcode>
+ <Country>United States</Country>
+ <LocalTitle>Flawless</LocalTitle>
+ <OriginalTitle>Flawless</OriginalTitle>
+ <SortTitle>Flawless</SortTitle>
+ <Edition>
+ </Edition>
+ <AspectRatio>
+ </AspectRatio>
+ <VideoStandard>
+ </VideoStandard>
+ <ProductionYear>1999</ProductionYear>
+ <ReleaseDate>4/25/2000</ReleaseDate>
+ <RunningTime>111</RunningTime>
+ <TagLine />
+ <Description><![CDATA[]]></Description>
+ <ExtraFeatures NotPresent="False"><![CDATA[]]></ExtraFeatures>
+ <ParentalRating>
+ <Value>6</Value>
+ <Description>
+ </Description>
+ </ParentalRating>
+ <DataProvider>
+ </DataProvider>
+ <DataProviderId>
+ </DataProviderId>
+ <ImportSource />
+ <ImportId />
+ <Covers>
+ <Front>mymovies-front.jpg</Front>
+ <Back />
+ </Covers>
+ <DataChanged>8/8/2007 6:30:43 PM</DataChanged>
+ <CoversChanged>6/21/2007 4:21:10 PM</CoversChanged>
+ <LockData>False</LockData>
+ <LockCovers>False</LockCovers>
+ <Added>9/8/2007 8:17:20 PM</Added>
+ <RecordChanged>9/8/2007 8:17:20 PM</RecordChanged>
+ <Categories />
+ <Genres />
+ <AudioTracks />
+ <Subtitles NotPresent="False" />
+ <Studios />
+ <Discs>
+ <Disc>
+ <DiscIdStored>
+ </DiscIdStored>
+ <DoubleSided>False</DoubleSided>
+ <Name>
+ </Name>
+ <DiscIdSideA>
+ </DiscIdSideA>
+ <DiscIdSideB>
+ </DiscIdSideB>
+ <LocationSideA>.</LocationSideA>
+ <LocationTypeSideA>1</LocationTypeSideA>
+ <LocationSideB>
+ </LocationSideB>
+ <LocationTypeSideB>-1</LocationTypeSideB>
+ </Disc>
+ <Disc>
+ <DiscIdStored>
+ </DiscIdStored>
+ <DoubleSided>False</DoubleSided>
+ <Name>Disc 1</Name>
+ <DiscIdSideA>
+ </DiscIdSideA>
+ <DiscIdSideB>
+ </DiscIdSideB>
+ <LocationSideA>
+ </LocationSideA>
+ <LocationTypeSideA>3</LocationTypeSideA>
+ <LocationSideB>
+ </LocationSideB>
+ <LocationTypeSideB>-1</LocationTypeSideB>
+ </Disc>
+ </Discs>
+ <Persons ActorsComplete="False">
+ <Person>
+ <Name>Robert de Niro</Name>
+ <Type>Actor</Type>
+ <Role>Walt Koontz</Role>
+ </Person>
+ <Person>
+ <Name>Philip Seymour Hoffman</Name>
+ <Type>Actor</Type>
+ <Role>Rusty Zimmerman</Role>
+ </Person>
+ <Person>
+ <Name>Barry Miller</Name>
+ <Type>Actor</Type>
+ <Role>Leonard Wilcox</Role>
+ </Person>
+ <Person>
+ <Name>Chris Bauer</Name>
+ <Type>Actor</Type>
+ <Role>Jacko</Role>
+ </Person>
+ <Person>
+ <Name>Skipp Sudduth</Name>
+ <Type>Actor</Type>
+ <Role>Tommy Walsh</Role>
+ </Person>
+ <Person>
+ <Name>Wilson Jermaine Heredia</Name>
+ <Type>Actor</Type>
+ <Role>Cha-Cha</Role>
+ </Person>
+ <Person>
+ <Name>Nashom Benjamin</Name>
+ <Type>Actor</Type>
+ <Role>Amazing Grace</Role>
+ </Person>
+ <Person>
+ <Name>Scott Allen Cooper</Name>
+ <Type>Actor</Type>
+ <Role>Ivana</Role>
+ </Person>
+ <Person>
+ <Name>Rory Cochrane</Name>
+ <Type>Actor</Type>
+ <Role>Pogo</Role>
+ </Person>
+ <Person>
+ <Name>Daphne Rubin-Vega</Name>
+ <Type>Actor</Type>
+ <Role>Tia</Role>
+ </Person>
+ <Person>
+ <Name>Vincent Laresca</Name>
+ <Type>Actor</Type>
+ <Role>Raymond Camacho</Role>
+ </Person>
+ <Person>
+ <Name>Karina Arroyave</Name>
+ <Type>Actor</Type>
+ <Role>Amber Garcia Sanchez</Role>
+ </Person>
+ <Person>
+ <Name>John Enos III</Name>
+ <Type>Actor</Type>
+ <Role>Sonny (as John Enos)</Role>
+ </Person>
+ <Person>
+ <Name>Jude Ciccolella</Name>
+ <Type>Actor</Type>
+ <Role>Detective Noonan</Role>
+ </Person>
+ <Person>
+ <Name>Mina Bern</Name>
+ <Type>Actor</Type>
+ <Role>Mrs. Spivak</Role>
+ </Person>
+ <Person>
+ <Name>Wanda De Jesus</Name>
+ <Type>Actor</Type>
+ <Role>Karen</Role>
+ </Person>
+ <Person>
+ <Name>Madhur Jaffrey</Name>
+ <Type>Actor</Type>
+ <Role>Dr. Nirmala</Role>
+ </Person>
+ <Person>
+ <Name>Mark Margolis</Name>
+ <Type>Actor</Type>
+ <Role>Vinnie</Role>
+ </Person>
+ <Person>
+ <Name>Shiek Mahmud-Bey</Name>
+ <Type>Actor</Type>
+ <Role>Vance</Role>
+ </Person>
+ <Person>
+ <Name>Luis Saguar</Name>
+ <Type>Actor</Type>
+ <Role>Mr. Z</Role>
+ </Person>
+ <Person>
+ <Name>Kyle Rivers</Name>
+ <Type>Actor</Type>
+ <Role>LeShaun Williams</Role>
+ </Person>
+ <Person>
+ <Name>Sammy Rhee</Name>
+ <Type>Actor</Type>
+ <Role>Mr. Pim</Role>
+ </Person>
+ <Person>
+ <Name>Hyunsoo Lee</Name>
+ <Type>Actor</Type>
+ <Role>Mrs. Pim</Role>
+ </Person>
+ <Person>
+ <Name>Richie LaMontagne</Name>
+ <Type>Actor</Type>
+ <Role>Carmine</Role>
+ </Person>
+ <Person>
+ <Name>Penny Balfour</Name>
+ <Type>Actor</Type>
+ <Role>Cristal</Role>
+ </Person>
+ <Person>
+ <Name>Winter B. Uhlarik</Name>
+ <Type>Actor</Type>
+ <Role>Tasha</Role>
+ </Person>
+ <Person>
+ <Name>Raven O.</Name>
+ <Type>Actor</Type>
+ <Role>Notorious F.A.G.</Role>
+ </Person>
+ <Person>
+ <Name>Joseph Arias</Name>
+ <Type>Actor</Type>
+ <Role>Stormy (as Joey Arias)</Role>
+ </Person>
+ <Person>
+ <Name>Kent Fuher</Name>
+ <Type>Actor</Type>
+ <Role>Gypsy (as Jackie Beat)</Role>
+ </Person>
+ <Person>
+ <Name>Blake Willett</Name>
+ <Type>Actor</Type>
+ <Role>Cop</Role>
+ </Person>
+ <Person>
+ <Name>Ingrid Rivera</Name>
+ <Type>Actor</Type>
+ <Role>Cop</Role>
+ </Person>
+ <Person>
+ <Name>Craig Braun</Name>
+ <Type>Actor</Type>
+ <Role>Paulie</Role>
+ </Person>
+ <Person>
+ <Name>John Doumanian</Name>
+ <Type>Actor</Type>
+ <Role>Mr. Terzola</Role>
+ </Person>
+ <Person>
+ <Name>Melissa Osborn</Name>
+ <Type>Actor</Type>
+ <Role>Tourist</Role>
+ </Person>
+ <Person>
+ <Name>John Contratti</Name>
+ <Type>Actor</Type>
+ <Role>Customer</Role>
+ </Person>
+ <Person>
+ <Name>Stacy Highsmith</Name>
+ <Type>Actor</Type>
+ <Role>Denise</Role>
+ </Person>
+ <Person>
+ <Name>Rod Rodriguez</Name>
+ <Type>Actor</Type>
+ <Role>Lesbian</Role>
+ </Person>
+ <Person>
+ <Name>Alice Williams</Name>
+ <Type>Actor</Type>
+ <Role>Lesbian</Role>
+ </Person>
+ <Person>
+ <Name>Antonette Schwartzberg</Name>
+ <Type>Actor</Type>
+ <Role>Mrs. Terzola</Role>
+ </Person>
+ <Person>
+ <Name>Hamilton De Oliveira</Name>
+ <Type>Actor</Type>
+ <Role>Hotel Janitor</Role>
+ </Person>
+ <Person>
+ <Name>Logan McCall</Name>
+ <Type>Actor</Type>
+ <Role>EMS Technician</Role>
+ </Person>
+ <Person>
+ <Name>John Mack</Name>
+ <Type>Actor</Type>
+ <Role>EMS Technician (as John E. Mack)</Role>
+ </Person>
+ <Person>
+ <Name>John Corcoran</Name>
+ <Type>Actor</Type>
+ <Role>Physical Therapist (as John R. Corcoran)</Role>
+ </Person>
+ <Person>
+ <Name>Matt Merchant</Name>
+ <Type>Actor</Type>
+ <Role>Man in Crowd</Role>
+ </Person>
+ <Person>
+ <Name>Kevin Aviance</Name>
+ <Type>Actor</Type>
+ <Role>Singer</Role>
+ </Person>
+ <Person>
+ <Name>Charles Ching</Name>
+ <Type>Actor</Type>
+ <Role>Singer (as Coco LaChine)</Role>
+ </Person>
+ <Person>
+ <Name>José Ángel García</Name>
+ <Type>Actor</Type>
+ <Role>Singer</Role>
+ </Person>
+ <Person>
+ <Name>Bruce Roberts</Name>
+ <Type>Actor</Type>
+ <Role>Singer</Role>
+ </Person>
+ <Person>
+ <Name>Al Marz</Name>
+ <Type>Actor</Type>
+ <Role>Cristal's Boyfriend</Role>
+ </Person>
+ <Person>
+ <Name>Michelle Robinson</Name>
+ <Type>Actor</Type>
+ <Role>Dancer</Role>
+ </Person>
+ <Person>
+ <Name>Nina Sonja Peterson</Name>
+ <Type>Actor</Type>
+ <Role>Sally</Role>
+ </Person>
+ <Person>
+ <Name>Mitchell Lichtenstein</Name>
+ <Type>Actor</Type>
+ <Role>Gay Republican Spokesperson</Role>
+ </Person>
+ <Person>
+ <Name>John Fink</Name>
+ <Type>Actor</Type>
+ <Role>Gay Republican Lawyer</Role>
+ </Person>
+ <Person>
+ <Name>Bret Kropp</Name>
+ <Type>Actor</Type>
+ <Role>Drag Queen</Role>
+ </Person>
+ <Person>
+ <Name>Cooley</Name>
+ <Type>Actor</Type>
+ <Role>Cop</Role>
+ </Person>
+ <Person>
+ <Name>Constance Boardman</Name>
+ <Type>Actor</Type>
+ <Role>Reporter</Role>
+ </Person>
+ <Person>
+ <Name>Lucy Cerezo-Scully</Name>
+ <Type>Actor</Type>
+ <Role>Paramedic</Role>
+ </Person>
+ <Person>
+ <Name>Al Thompson</Name>
+ <Type>Actor</Type>
+ <Role>Paramedic</Role>
+ </Person>
+ <Person>
+ <Name>Jackie Beat</Name>
+ <Type>Actor</Type>
+ <Role>Drag queen</Role>
+ </Person>
+ <Person>
+ <Name>Larry Marx</Name>
+ <Type>Actor</Type>
+ <Role>Bar Patron</Role>
+ </Person>
+ <Person>
+ <Name>Christian Boeving</Name>
+ <Type>Actor</Type>
+ <Role>Max (uncredited)</Role>
+ </Person>
+ <Person>
+ <Name>Michael Harkins</Name>
+ <Type>Actor</Type>
+ <Role>Drag Pageant Contestant (uncredited)</Role>
+ </Person>
+ <Person>
+ <Name>Victor Rasuk</Name>
+ <Type>Actor</Type>
+ <Role>Kid from the Neighborhood (uncredited)</Role>
+ </Person>
+ <Person>
+ <Name>Joel Schumacher</Name>
+ <Type>Director</Type>
+ </Person>
+ </Persons>
</Title>
View
46 TestMediaBrowser/SampleMedia/TV/South Park/Season 1/02.mkv
@@ -1,24 +1,24 @@
-<Mcml xmlns="http://schemas.microsoft.com/2006/mcml"
- xmlns:cor="assembly://MSCorLib/System">
-
- <UI Name="_02">
-
- <Properties>
- <Color Name="MyColor" Color="White"/>
- </Properties>
-
- <Locals>
- <cor:String Name="MyString" String="Hello"/>
- </Locals>
-
- <Rules>
- <Default Target="[MyText.Content]" Value="[MyString]"/>
- </Rules>
-
- <Content>
- <Text Name="MyText" Color="[MyColor]" Font="Calibri, 24"/>
- </Content>
-
- </UI>
-
+<Mcml xmlns="http://schemas.microsoft.com/2006/mcml"
+ xmlns:cor="assembly://MSCorLib/System">
+
+ <UI Name="_02">
+
+ <Properties>
+ <Color Name="MyColor" Color="White"/>
+ </Properties>
+
+ <Locals>
+ <cor:String Name="MyString" String="Hello"/>
+ </Locals>
+
+ <Rules>
+ <Default Target="[MyText.Content]" Value="[MyString]"/>
+ </Rules>
+
+ <Content>
+ <Text Name="MyText" Color="[MyColor]" Font="Calibri, 24"/>
+ </Content>
+
+ </UI>
+
</Mcml>
View
46 TestMediaBrowser/SampleMedia/TV/South Park/Season 1/03.mpg
@@ -1,24 +1,24 @@
-<Mcml xmlns="http://schemas.microsoft.com/2006/mcml"
- xmlns:cor="assembly://MSCorLib/System">
-
- <UI Name="_03">
-
- <Properties>
- <Color Name="MyColor" Color="White"/>
- </Properties>
-
- <Locals>
- <cor:String Name="MyString" String="Hello"/>
- </Locals>
-
- <Rules>
- <Default Target="[MyText.Content]" Value="[MyString]"/>
- </Rules>
-
- <Content>
- <Text Name="MyText" Color="[MyColor]" Font="Calibri, 24"/>
- </Content>
-
- </UI>
-
+<Mcml xmlns="http://schemas.microsoft.com/2006/mcml"
+ xmlns:cor="assembly://MSCorLib/System">
+
+ <UI Name="_03">
+
+ <Properties>
+ <Color Name="MyColor" Color="White"/>
+ </Properties>
+
+ <Locals>
+ <cor:String Name="MyString" String="Hello"/>
+ </Locals>
+
+ <Rules>
+ <Default Target="[MyText.Content]" Value="[MyString]"/>
+ </Rules>
+
+ <Content>
+ <Text Name="MyText" Color="[MyColor]" Font="Calibri, 24"/>
+ </Content>
+
+ </UI>
+
</Mcml>
View
120 TestMediaBrowser/SupportingClasses/DummyItemRepository.cs
@@ -1,60 +1,60 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using MediaBrowser.Library;
-using MediaBrowser.Library.Entities;
-using MediaBrowser.Library.Interfaces;
-
-namespace TestMediaBrowser {
- public class DummyItemRepository : IItemRepository {
-
- public void SaveItem(BaseItem item) {
- }
-
- public BaseItem RetrieveItem(Guid name) {
- return null;
- }
-
- public void SaveChildren(Guid ownerName, IEnumerable<Guid> children) {
- }
-
- public IEnumerable<Guid> RetrieveChildren(Guid id) {
- return null;
- }
-
- public PlaybackStatus RetrievePlayState(Guid id) {
- return null;
- }
-
- public DisplayPreferences RetrieveDisplayPreferences(Guid id) {
- return null;
- }
-
- public void SavePlayState(PlaybackStatus playState) {
-
- }
-
- public void SaveDisplayPreferences(DisplayPreferences prefs) {
-
- }
-
- public void CleanCache() {
-
- }
-
- public bool ClearEntireCache() {
- return false;
- }
-
-
- public IEnumerable<IMetadataProvider> RetrieveProviders(Guid guid) {
- return null;
- }
-
- public void SaveProviders(Guid guid, IEnumerable<IMetadataProvider> providers) {
- }
-
-
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using MediaBrowser.Library;
+using MediaBrowser.Library.Entities;
+using MediaBrowser.Library.Interfaces;
+
+namespace TestMediaBrowser {
+ public class DummyItemRepository : IItemRepository {
+
+ public void SaveItem(BaseItem item) {
+ }
+
+ public BaseItem RetrieveItem(Guid name) {
+ return null;
+ }
+
+ public void SaveChildren(Guid ownerName, IEnumerable<Guid> children) {
+ }
+
+ public IEnumerable<Guid> RetrieveChildren(Guid id) {
+ return null;
+ }
+
+ public PlaybackStatus RetrievePlayState(Guid id) {
+ return null;
+ }
+
+ public DisplayPreferences RetrieveDisplayPreferences(Guid id) {
+ return null;
+ }
+
+ public void SavePlayState(PlaybackStatus playState) {
+
+ }
+
+ public void SaveDisplayPreferences(DisplayPreferences prefs) {
+
+ }
+
+ public void CleanCache() {
+
+ }
+
+ public bool ClearEntireCache() {
+ return false;
+ }
+
+
+ public IEnumerable<IMetadataProvider> RetrieveProviders(Guid guid) {
+ return null;
+ }
+
+ public void SaveProviders(Guid guid, IEnumerable<IMetadataProvider> providers) {
+ }
+
+
+ }
+}
View
114 TestMediaBrowser/SupportingClasses/DummyPersistanceObject.cs
@@ -1,57 +1,57 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.IO;
-using MediaBrowser.Library.Persistance;
-
-namespace TestMediaBrowser.SupportingClasses {
- [Serializable]
- public class DummyPersistanceObject {
-
- [Persist]
- public int Bar1;
- [Persist]
- public string Bar2;
- [Persist]
- Guid bar3 = Guid.NewGuid();
- public Guid Bar3 { get { return bar3; } }
- [Persist]
- public String Null;
-
- public void Write(BinaryWriter bw) {
- bw.Write(Bar1);
- bw.SafeWriteString(Bar2);
- bw.Write(Bar3.ToByteArray());
- bw.SafeWriteString(Null);
- }
-
- public static DummyPersistanceObject Read(BinaryReader br) {
- DummyPersistanceObject f = new DummyPersistanceObject();
- f.Bar1 = br.ReadInt32();
- f.Bar2 = br.SafeReadString();
- f.bar3 = new Guid(br.ReadBytes(16));
- f.Null = br.SafeReadString();
- return f;
- }
-
-
- public override int GetHashCode() {
- unchecked {
- return Bar1.GetHashCode()
- + Bar3.GetHashCode()
- + (Bar2 ?? "").GetHashCode() + (Null ?? "").GetHashCode();
- }
- }
-
- public override bool Equals(object obj) {
- DummyPersistanceObject other = obj as DummyPersistanceObject;
- if (other != null) {
- return Bar1 == other.Bar1 && Bar2 == other.Bar2
- && Bar3 == other.Bar3
- && this.Null == other.Null;
- }
- return false;
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+using MediaBrowser.Library.Persistance;
+
+namespace TestMediaBrowser.SupportingClasses {
+ [Serializable]
+ public class DummyPersistanceObject {
+
+ [Persist]
+ public int Bar1;
+ [Persist]
+ public string Bar2;
+ [Persist]
+ Guid bar3 = Guid.NewGuid();
+ public Guid Bar3 { get { return bar3; } }
+ [Persist]
+ public String Null;
+
+ public void Write(BinaryWriter bw) {
+ bw.Write(Bar1);
+ bw.SafeWriteString(Bar2);
+ bw.Write(Bar3.ToByteArray());
+ bw.SafeWriteString(Null);
+ }
+
+ public static DummyPersistanceObject Read(BinaryReader br) {
+ DummyPersistanceObject f = new DummyPersistanceObject();
+ f.Bar1 = br.ReadInt32();
+ f.Bar2 = br.SafeReadString();
+ f.bar3 = new Guid(br.ReadBytes(16));
+ f.Null = br.SafeReadString();
+ return f;
+ }
+
+
+ public override int GetHashCode() {
+ unchecked {
+ return Bar1.GetHashCode()
+ + Bar3.GetHashCode()
+ + (Bar2 ?? "").GetHashCode() + (Null ?? "").GetHashCode();
+ }
+ }
+
+ public override bool Equals(object obj) {
+ DummyPersistanceObject other = obj as DummyPersistanceObject;
+ if (other != null) {
+ return Bar1 == other.Bar1 && Bar2 == other.Bar2
+ && Bar3 == other.Bar3
+ && this.Null == other.Null;
+ }
+ return false;
+ }
+ }
+}
View
252 TestMediaBrowser/SupportingClasses/MockFolderMediaLocation.cs
@@ -1,126 +1,126 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using MediaBrowser.Library.Filesystem;
-
-namespace TestMediaBrowser.SupportingClasses {
- class MockFolderMediaLocation : MockMediaLocation, IFolderMediaLocation {
-
- class RowInfo {
- public RowInfo(string line) {
- Depth = line.Length - line.TrimStart().Length;
- var trimmedLine = line.TrimStart();
- IsFolder = trimmedLine.StartsWith("|");
- Path = IsFolder ? trimmedLine.Substring(1) : trimmedLine;
- }
-
- public int Depth { get; private set; }
- public bool IsFolder { get; private set; }
- public string Path { get; private set; }
- }
-
- class Builder {
-
- private MockFolderMediaLocation location = new MockFolderMediaLocation();
-
- public Builder() {
- location.Path = "";
- }
-
- public void AddParent(RowInfo info,int depth) {
- while (depth > 0) {
- depth--;
- location = (MockFolderMediaLocation)location.Parent;
- }
- AddSibling(info);
- }
- public void AddChild(RowInfo info) {
- location = (MockFolderMediaLocation)location.Children.Last();
- AddSibling(info);
- }
- public void AddSibling(RowInfo info) {
- MockMediaLocation newLocation;
- if (info.IsFolder) {
- newLocation = new MockFolderMediaLocation();
- } else {
- newLocation = new MockMediaLocation();
- }
- if (location.Path.Length > 0) {
- newLocation.Path = location.Path + "\\" + info.Path;
- } else {
- newLocation.Path = info.Path;
- }
- newLocation.Parent = this.location;
- location.Children.Add(newLocation);
- }
-
- public MockFolderMediaLocation[] RootFolders {
- get {
- var root = location;
- while (true) {
- if (root.Parent != null) {
- root = (MockFolderMediaLocation)root.Parent;
- } else {
- break;
- }
- }
-
- var rval = new List<MockFolderMediaLocation>();
-
- foreach (var item in root.Children) {
- if (item is MockFolderMediaLocation) {
- rval.Add(item as MockFolderMediaLocation);
- }
- }
-
- return rval.ToArray();
- }
- }
- }
-
- public static MockFolderMediaLocation CreateMockLocation(string config) {
-
- return CreateMockLocations(config)[0];
- }
-
- public static MockFolderMediaLocation[] CreateMockLocations(string config) {
-
- var builder = new Builder();
- var depth = 0;
-
- foreach (var line in config.Split(new string[] { Environment.NewLine },
- StringSplitOptions.RemoveEmptyEntries))
- {
- var rowInfo = new RowInfo(line);
-
- if (rowInfo.Depth == depth) {
- builder.AddSibling(rowInfo);
- } else if (rowInfo.Depth > depth) {
- builder.AddChild(rowInfo);
- } else {
- builder.AddParent(rowInfo, depth - rowInfo.Depth);
- }
-
- depth = rowInfo.Depth;
- }
-
- return builder.RootFolders;
- }
-
- private IList<IMediaLocation> children = new List<IMediaLocation>();
- public IList<IMediaLocation> Children {
- get { return children; }
- }
-
- public IMediaLocation GetChild(string name) {
- return children.Where(child => child.Path.EndsWith(name.ToLower())).First();
- }
-
- public bool ContainsChild(string name) {
- return children.Where(child => child.Path.EndsWith(name.ToLower())).Count() > 0;
- }
-
-
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using MediaBrowser.Library.Filesystem;
+
+namespace TestMediaBrowser.SupportingClasses {
+ class MockFolderMediaLocation : MockMediaLocation, IFolderMediaLocation {
+
+ class RowInfo {
+ public RowInfo(string line) {
+ Depth = line.Length - line.TrimStart().Length;
+ var trimmedLine = line.TrimStart();
+ IsFolder = trimmedLine.StartsWith("|");
+ Path = IsFolder ? trimmedLine.Substring(1) : trimmedLine;
+ }
+
+ public int Depth { get; private set; }
+ public bool IsFolder { get; private set; }
+ public string Path { get; private set; }
+ }
+
+ class Builder {
+
+ private MockFolderMediaLocation location = new MockFolderMediaLocation();
+
+ public Builder() {
+ location.Path = "";
+ }
+