Repository: mikf/gallery-dl (branch: master)
Commit date: 2023-12-17T22:04:56Z

Workflow file: .github/workflows/tests.yml (tests)
name: tests

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  build:

    runs-on: ubuntu-20.04

    services:

      pypi_wayback:

        image: ghcr.io/waleko/pypi-wayback

        ports:

          - 8629:8080
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"]

    steps:
    - uses: actions/checkout@v4

    - name: Check file permissions
      run: |
        if [[ "$(find ./gallery_dl -type f -not -perm 644)" ]]; then exit 1; fi

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        pip install -r requirements.txt
        pip install flake8 youtube-dl

    - name: Install yt-dlp
      run: |
        case "${{ matrix.python-version }}" in
            3.4|3.5)
                # don't install yt-dlp
                ;;
            3.6|3.7)
                # install from PyPI
                pip install yt-dlp
                ;;
            *)
                # install from master
                pip install https://github.com/yt-dlp/yt-dlp/archive/refs/heads/master.tar.gz
                ;;
        esac

    - name: Lint with flake8
      run: |
        case "${{ matrix.python-version }}" in
            3.4|3.5|3.6|3.7)
                flake8 --extend-exclude scripts/export_tests.py .
                ;;
            *)
                flake8 .
                ;;
        esac

    - name: Run tests
      run: |
        make test

    - name: Test autogeneration of man pages, bash/zsh/fish completion, etc
      run: |
        make

env:
  PIP_INDEX_URL: http://localhost:8629/2023-12-17
  UV_INDEX_URL: http://localhost:8629/2023-12-17


Failed build logs:
step_name: build (3.5)/7_Lint with flake8.txt
log: ##[group]Run case "3.5" in
[36;1mcase "3.5" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.5.10/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.5.10/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.5.10/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.5.10/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.5.10/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.5.10/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.6)/7_Lint with flake8.txt
log: ##[group]Run case "3.6" in
[36;1mcase "3.6" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.6.15/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.6.15/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.6.15/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.6.15/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.6.15/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.6.15/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.7)/7_Lint with flake8.txt
log: ##[group]Run case "3.7" in
[36;1mcase "3.7" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.7.17/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.8)/7_Lint with flake8.txt
log: ##[group]Run case "3.8" in
[36;1mcase "3.8" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.9)/7_Lint with flake8.txt
log: ##[group]Run case "3.9" in
[36;1mcase "3.9" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.10)/7_Lint with flake8.txt
log: ##[group]Run case "3.10" in
[36;1mcase "3.10" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.11)/7_Lint with flake8.txt
log: ##[group]Run case "3.11" in
[36;1mcase "3.11" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (3.12)/7_Lint with flake8.txt
log: ##[group]Run case "3.12" in
[36;1mcase "3.12" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.

step_name: build (pypy3.9)/7_Lint with flake8.txt
log: ##[group]Run case "pypy3.9" in
[36;1mcase "pypy3.9" in[0m
[36;1m    3.4|3.5|3.6|3.7)[0m
[36;1m        flake8 --extend-exclude scripts/export_tests.py .[0m
[36;1m        ;;[0m
[36;1m    *)[0m
[36;1m        flake8 .[0m
[36;1m        ;;[0m
[36;1mesac[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/PyPy/3.9.18/x64
  Python_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/PyPy/3.9.18/x64/bin/lib/pkgconfig
##[endgroup]
./gallery_dl/extractor/shimmie2.py:226:52: E126 continuation line over-indented for hanging indent
./gallery_dl/extractor/shimmie2.py:226:80: E501 line too long (82 > 79 characters)
##[error]Process completed with exit code 1.


Changed files:
gallery_dl/extractor/shimmie2.py

Fix diff:
diff --git a/gallery_dl/extractor/shimmie2.py b/gallery_dl/extractor/shimmie2.py
index a9ed615b..299b2394 100644
--- a/gallery_dl/extractor/shimmie2.py
+++ b/gallery_dl/extractor/shimmie2.py
@@ -223,7 +223,7 @@ class Shimmie2TagExtractor(Shimmie2Extractor):
                     break
 
                 tags, dimensions, size, ext = extr(
-                                                   "title=\"", "\"").split(" // ")
+                    "title=\"", "\"").split(" // ")
                 width, _, height = dimensions.partition("x")
                 md5 = extr("/_thumbs/", "/")