Skip to content

Commit

Permalink
[1.3.4a] fix bluemediafiles bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
prismatica-dev committed Jun 15, 2023
1 parent 8946dec commit 7eaa300
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions OpenVapour/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions OpenVapour/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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.3.4.0")]
[assembly: AssemblyFileVersion("1.3.4.0")]
[assembly: AssemblyVersion("1.3.4.1")]
[assembly: AssemblyFileVersion("1.3.4.1")]
2 changes: 1 addition & 1 deletion OpenVapour/Torrent/Torrent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal ResultTorrent(TorrentSource Source, string JSON) {

switch (Source) {
case TorrentSource.PCGamesTorrents:
TorrentUrl = GetBetween(JSON, "a href=\"", "\""); // needs to load url shortener page then bypass waiting period
TorrentUrl = GetBetween(GetAfter(JSON, "TORRENT"), "a href=\"", "\""); // needs to load url shortener page then bypass waiting period
break;

case TorrentSource.FitgirlRepacks:
Expand Down
6 changes: 3 additions & 3 deletions OpenVapour/Web/WebInternals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ internal static void AddHeaders(HttpRequestHeaders Base, string Url, bool FullSp
internal static string DecodeBlueMediaFiles(string EncodedUrl) {
try {
Utilities.HandleLogging($"[BlueMediaFiles Bypass] Decoding {EncodedUrl}!");
EncodedUrl = Utilities.GetAfter(EncodedUrl, "=");
// EncodedUrl = Utilities.GetAfter(EncodedUrl, "=");
/*.Replace("https://bluemediafiles.com/get-url.php?url=", "")
.Replace("https://bluemediafiles.eu/get-url.php?url=", "")
.Replace("https://dl.pcgamestorrents.org/url-generator.php?url=", "")
.Replace("https://bluemediafiles.site/get-url.php?url=", "");*/
if (EncodedUrl.IndexOf('=') <= 60) EncodedUrl = EncodedUrl.Substring(EncodedUrl.IndexOf('=') + 1);
if (EncodedUrl.IndexOf('=') <= 60) EncodedUrl = Utilities.GetAfter(EncodedUrl, "=");
string URL = "";
for (int i = (EncodedUrl.Length / 2) - 5; i >= 0; i -= 2) URL += EncodedUrl[i];
for (int i = (EncodedUrl.Length / 2) + 4; i < EncodedUrl.Length; i += 2) URL += EncodedUrl[i];
Utilities.HandleLogging("decoded " + EncodedUrl + "!");
Utilities.HandleLogging($"[BlueMediaFiles Bypass] Decoded to {URL}!");
return URL; }
catch (Exception ex) { Utilities.HandleException($"WebInternals.DecodeBlueMediaFiles({EncodedUrl})", ex); return ""; }}}}

0 comments on commit 7eaa300

Please sign in to comment.