Skip to content

Commit

Permalink
Revert "[fix/ISSUE-80] Attempt to force download even if LOGIN_REQUIRED"
Browse files Browse the repository at this point in the history
This reverts commit 879c59e.
  • Loading branch information
azihassan committed Aug 16, 2024
1 parent 5cfeeb2 commit 9883ee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
runs-on: ${{ matrix.os.name }}
needs: unit_test
continue-on-error: true
on: workflow_dispatch

steps:
- uses: actions/checkout@v1
Expand Down
6 changes: 2 additions & 4 deletions source/parsers.d
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SimpleYoutubeVideoURLExtractor : YoutubeVideoURLExtractor
this.html = html;
this.logger = logger;
parser = createDocument(html);
//failIfUnplayable();
failIfUnplayable();
}

this(string html, string baseJS, StdoutLogger logger)
Expand Down Expand Up @@ -182,7 +182,6 @@ unittest
assert(extractor.getID() == "Q_-p2q5FHy0");
}

/*
unittest
{
import std.exception : collectExceptionMsg;
Expand All @@ -193,7 +192,6 @@ unittest
string expectedExceptionMessage = "Video is unplayable because of status LOGIN_REQUIRED";
assert(exceptionMessage == expectedExceptionMessage, "Expected message " ~ expectedExceptionMessage ~ " but got " ~ exceptionMessage);
}
*/

enum AudioVisual : string
{
Expand Down Expand Up @@ -281,7 +279,7 @@ class AdvancedYoutubeVideoURLExtractor : YoutubeVideoURLExtractor
this.parser = createDocument(html);
this.baseJS = baseJS;
this.logger = logger;
//failIfUnplayable();
failIfUnplayable();
}

override string getURL(int itag, bool attemptDethrottle = false)
Expand Down

0 comments on commit 9883ee8

Please sign in to comment.