Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/auto-update-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
python -m pip install --upgrade pip
python -m pip install -r requirements.txt

- name: Install npm dependencies
run: npm install

- name: Parse Issue
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
Expand All @@ -58,12 +61,12 @@
- name: Crease JSON
env:
JSON_STRING: ${{ steps.issue-parser.outputs.jsonString }}
run: |

Check failure on line 64 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2086:info:1:6: Double quote to prevent globbing and word splitting
echo ${JSON_STRING} > submission.json

- name: Get Issue Author ID
id: author
run: |

Check failure on line 69 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2086:info:1:71: Double quote to prevent globbing and word splitting

Check failure on line 69 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2116:style:1:23: Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'
echo "issue_author_id=$(echo "${{ github.event.issue.user.id }}")" >> $GITHUB_OUTPUT

- name: Update
Expand All @@ -73,7 +76,7 @@
TMDB_API_KEY_V3: ${{ secrets.TMDB_API_KEY_V3 }}
TWITCH_CLIENT_ID: ${{ secrets.TWITCH_CLIENT_ID }}
TWITCH_CLIENT_SECRET: ${{ secrets.TWITCH_CLIENT_SECRET }}
run: |

Check failure on line 79 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2086:info:14:31: Double quote to prevent globbing and word splitting

Check failure on line 79 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2086:info:12:30: Double quote to prevent globbing and word splitting

Check failure on line 79 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2086:info:7:31: Double quote to prevent globbing and word splitting

Check failure on line 79 in .github/workflows/auto-update-db.yml

View workflow job for this annotation

GitHub Actions / Common Lint / Common Lint

shellcheck reported issue in this script: SC2086:info:5:30: Double quote to prevent globbing and word splitting
python -u ./src/updater.py --issue_update

# if exceptions.md file exists, then set output to true
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
python -m pip install -r requirements-dev.txt

- name: Install npm dependencies
run: |
npm install
run: npm install

- name: Test with pytest
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ jobs:
python -m pip install -r requirements.txt

- name: Install npm dependencies
run: |
npm install
run: npm install

- name: Update
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"devDependencies": {
"deno": "2.5.6",
"electron": "6.1.4",
"orca": "1.3.1"
}
Expand Down
16 changes: 12 additions & 4 deletions src/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,18 @@ def check_youtube(data: dict) -> str:
break

# url provided, now process it using youtube_dl
youtube_dl_params = dict(
outmpl='%(id)s.%(ext)s',
youtube_include_dash_manifest=False,
)
youtube_dl_params = {
"js_runtimes": {
"deno": {
"path": os.path.join("node_modules", "deno", "deno"),
},
},
"outmpl": '%(id)s.%(ext)s',
"remote_components": [
"ejs:npm",
],
"youtube_include_dash_manifest": False,
}

ydl = youtube_dl.YoutubeDL(params=youtube_dl_params)

Expand Down
Loading