Schroedinger-Hat / youtube-to-anchorfm

An automation process to convert YouTube video into audio file and uploading it to Anchor.fm podcast
MIT License
127 stars 70 forks source link

Finding the Wrong video & breaking #62

Closed luabida closed 1 year ago

luabida commented 1 year ago

Hey guys I've just made a quick test trying to upload a video when I got these two errors:

episodes.json:

{
    "id": "vWySu4D48kc"
}

Breaking step (upload):

Run Schrodinger-Hat/youtube-to-anchorfm@v2.0.0
/usr/bin/docker run --name e37903d09c6eee43e19c8f3e610d6e[5](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:6)e41_5[7](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:8)0da2 --label 5364e3 --workdir /github/workspace --rm -e "ANCHOR_EMAIL" -e "ANCHOR_PASSWORD" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/opensciencelabs.github.io/opensciencelabs.github.io":"/github/workspace" 5364e3:7903d09c6eee43e19c[8](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:9)f3e610d6e5e41

> puppeteer@16.1.0 install /node_modules/puppeteer
> node install.js

Chromium (1022525) downloaded to /node_modules/puppeteer/.local-chromium/linux-1022525

> youtube-dl-exec@2.1.5 preinstall /node_modules/youtube-dl-exec
> npx bin-version-check-cli python3 "> =3.7"

npx: installed 91 in 6.424s

> youtube-dl-exec@2.1.5 postinstall /node_modules/youtube-dl-exec
> node scripts/postinstall.js

> youtube-dl@3.5.0 postinstall /node_modules/youtube-dl
> npm run check && npm run download

> youtube-dl@3.5.0 check /node_modules/youtube-dl
> bin-version-check python '>=2'

> youtube-dl@3.5.0 download /node_modules/youtube-dl
> node ./scripts/download.js

Downloaded youtube-dl 2021.[12](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:13).17
added [18](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:19)5 packages in 21.893s

> youtube-to-anchorfm@2.0.0 start /
> node src/index.js

Getting JSON video info for video id hgwLJtGfFfQ
title: ExpStories - Alessandro Molina
description: Lo abbiamo visto al FossExp10 e alla rubrica dei libri, ormai siamo dei fan sfegatati di Alessandro e oggi lo presenteremo con questo nuovo episodio di ExpStories. Raccontiamo la sua storia e molto altro...

Link di Alessio:
https://github.com/amol-/
https://medium.com/@__amol__

https://twitter.com/__amol__

Seguiteci su:
Web: https://www.schrodinger-hat.it/

linkedln: https://www.linkedin.com/company/schrodinger-hat
Telegram: https://t.me/joinchat/UrdY3eCmpyi_MuH_

Facebook: https://www.facebook.com/schrodingerhat/

Instagram: https://www.instagram.com/schrodinger_hat/
Twitter: https://twitter.com/schrodinger_hat
Upload date: {"year":"2021","month":"May","day":"28"}
Downloading thumbnail for video id hgwLJtGfFfQ
Downloading audio for video id hgwLJtGfFfQ
Downloaded thumbnail for video id hgwLJtGfFfQ
Downloaded audio for video id hgwLJtGfFfQ
Posting episode to anchorfm
Launching puppeteer
Trying to log in
Logged in
Uploading audio file
Error: Unable to post episode to anchorfm: TimeoutError: waiting for selector `input[type=file]` failed: timeout 30000ms exceeded
    at postEpisode (/src/anchorfm-pupeteer/index.js:157:15)
    at async main (/src/index.js:37:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! youtube-to-anchorfm@2.0.0 start: `node src/index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the youtube-to-anchorfm@2.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /github/home/.npm/_logs/20[22](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:23)-10-03T17_43_32_[42](https://github.com/luabida/opensciencelabs.github.io/actions/runs/3176212617/jobs/5175243624#step:4:43)8Z-debug.log

main.yaml:

jobs:

  upload_episode:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Upload Episode from YouTube To Anchor.Fm
        uses: Schrodinger-Hat/youtube-to-anchorfm@v2.0.0
        env:
          ANCHOR_EMAIL: ${{ secrets.ANCHOR_EMAIL }}
          ANCHOR_PASSWORD: ${{ secrets.ANCHOR_PASSWORD }}
matevskial commented 1 year ago

I see this issue is closed. But I think, that anchorfm now supports both audio and video uploads. I believe the problem is that anchorfm hasn't rolled that feature everywhere yet. So far I don't see this problem.