Skip to content

Commit c264895

Browse files
committed
v1.4 - URL of Actors
1 parent 4a5648a commit c264895

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed

IMDbAPI_Client/IMDbAPI_Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<ApplicationIcon>ProjectIcon.ico</ApplicationIcon>
3737
</PropertyGroup>
3838
<ItemGroup>
39-
<Reference Include="IMDbApiLib, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL">
40-
<HintPath>..\packages\IMDbApiLib.1.2.0\lib\net45\IMDbApiLib.dll</HintPath>
39+
<Reference Include="IMDbApiLib, Version=1.4.0.0, Culture=neutral, processorArchitecture=MSIL">
40+
<HintPath>..\packages\IMDbApiLib.1.4.0\lib\net45\IMDbApiLib.dll</HintPath>
4141
</Reference>
4242
<Reference Include="MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a, processorArchitecture=MSIL">
4343
<HintPath>..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.dll</HintPath>

IMDbAPI_Client/MoreInfoForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void EnableControlls(bool enabled)
9999

100100
private void btnIMDb_Click(object sender, EventArgs e)
101101
{
102-
System.Diagnostics.Process.Start("https://imdb-api.com/Title/" + _id);
102+
System.Diagnostics.Process.Start("https://imdb-api.com/title/" + _id);
103103
}
104104
}
105105
}

IMDbAPI_Client/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.1.0.0")]
35-
[assembly: AssemblyFileVersion("1.1.0.0")]
34+
[assembly: AssemblyVersion("1.4.0.0")]
35+
[assembly: AssemblyFileVersion("1.4.0.0")]

IMDbAPI_Client/SearchForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private void btnIMDb_Click(object sender, EventArgs e)
129129
return;
130130
}
131131

132-
System.Diagnostics.Process.Start("https://imdb-api.com/Title/" + Id);
132+
System.Diagnostics.Process.Start("https://imdb-api.com/title/" + Id);
133133
}
134134

135135
private void txtExpression_Enter(object sender, EventArgs e)

IMDbAPI_Client/UserControls/Step4_DownloadUC.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ await _apiLib.DownloadReportAsync(
296296
string filePath = Path.Combine(dir, $"{item.Id} on IMDb-API.url");
297297
string content = $"[InternetShortcut]";
298298
content += Environment.NewLine;
299-
content += $"URL=https://imdb-api.com/Title/{item.Id}";
299+
content += $"URL=https://imdb-api.com/title/{item.Id}";
300300
File.WriteAllText(filePath, content);
301301
}
302302

@@ -349,6 +349,19 @@ await _apiLib.DownloadReportAsync(
349349
}
350350
}
351351
}
352+
353+
// ACTORS
354+
string actorDir = Path.Combine(dir, "Actors");
355+
if (!Directory.Exists(actorDir))
356+
Directory.CreateDirectory(actorDir);
357+
foreach(var actor in data.ActorList)
358+
{
359+
string filePath = Path.Combine(actorDir, $"{Utils.RenameToPhisicalName(actor.Name)} [{actor.Id}].url");
360+
string content = $"[InternetShortcut]";
361+
content += Environment.NewLine;
362+
content += $"URL=https://imdb-api.com/name/{actor.Id}";
363+
File.WriteAllText(filePath, content);
364+
}
352365
}
353366

354367
// Progress

IMDbAPI_Client/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="IMDbApiLib" version="1.2.0" targetFramework="net472" />
3+
<package id="IMDbApiLib" version="1.4.0" targetFramework="net472" />
44
<package id="MetroModernUI" version="1.4.0.0" targetFramework="net472" />
55
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
66
</packages>

0 commit comments

Comments
 (0)