Compare commits

...

2 Commits

2 changed files with 20 additions and 4 deletions

View File

@ -1,15 +1,31 @@
name: Download Tests name: Download Tests
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
tests: quick:
name: Download Tests name: Quick Download Tests
if: "contains(github.event.head_commit.message, 'ci run dl')" if: "contains(github.event.head_commit.message, 'ci run dl')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install test requirements
run: pip install pytest
- name: Run tests
continue-on-error: true
run: ./devscripts/run_tests.sh download
full:
name: Full Download Tests
if: "contains(github.event.head_commit.message, 'ci run dl all')"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
python-version: ['3.6', '3.7', '3.9', '3.10', 3.11-dev, pypy-3.6, pypy-3.7, pypy-3.8] python-version: ['3.6', '3.7', '3.10', 3.11-dev, pypy-3.6, pypy-3.7, pypy-3.8]
run-tests-ext: [sh] run-tests-ext: [sh]
include: include:
# atleast one of each CPython/PyPy tests must be in windows # atleast one of each CPython/PyPy tests must be in windows

View File

@ -3455,7 +3455,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
if get_first(video_details, 'isPostLiveDvr'): if get_first(video_details, 'isPostLiveDvr'):
self.write_debug('Video is in Post-Live Manifestless mode') self.write_debug('Video is in Post-Live Manifestless mode')
if duration or 0 > 4 * 3600: if (duration or 0) > 4 * 3600:
self.report_warning( self.report_warning(
'The livestream has not finished processing. Only 4 hours of the video can be currently downloaded. ' 'The livestream has not finished processing. Only 4 hours of the video can be currently downloaded. '
'This is a known issue and patches are welcome') 'This is a known issue and patches are welcome')