Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Test at least 10 different Vimeo video downloads" #171

Open
holta opened this issue Jun 5, 2024 · 16 comments
Open

"Test at least 10 different Vimeo video downloads" #171

holta opened this issue Jun 5, 2024 · 16 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@holta holta added help wanted Extra attention is needed question Further information is requested labels Jun 5, 2024
@EMG70
Copy link

EMG70 commented Jun 5, 2024

SUDO IIAB-DIAGNOSTICS : https://dpaste.com/BDRX23TF6
11 Vimeo videos downloads attempted:
https://vimeo.com/539844075 How feed prices will impact the broiler industry โœ…
https://vimeo.com/5282155 Sewing โœ…
https://vimeo.com/53301442 Cheese โœ…
https://vimeo.com/228341694 Networking โœ…
https://vimeo.com/953721938 Sql intro (Failed to download,non susbscriptable) ,not a calibre web problem.output message says Video is not rated. Log in to watch.? โŒ see screenshot
Screenshot from 2024-06-05 19-32-24

https://vimeo.com/498384180 IoT , video downloaded without cover โŒ
https://vimeo.com/255959106 Data basics โœ…
https://vimeo.com/134138657 IoT: How Data Science-Driven Software is Eating the Connected World โœ…
https://vimeo.com/461859027 Beef efficiency ,video downloaded without cover โŒ
https://vimeo.com/447360211 Avocado grafting โœ…
https://vimeo.com/222794361 Papaya โœ…

Pasted image
Screenshot from 2024-06-05 19-09-28
The two videos that did not show thumbnails were uploaded by SRUCBytes - Scotland's Rural College.

@holta
Copy link
Member Author

holta commented Jun 5, 2024

THANK YOU @EMG70 for your hard work ๐Ÿ™

Summary needing investigation:

8 โœ…
2 โš ๏ธ thumbnail missing
1 โŒ "failed to download: 'NoneType' object is not subscriptable"

See also: #167 (comment)

@deldesir deldesir self-assigned this Jun 6, 2024
@holta
Copy link
Member Author

holta commented Jun 7, 2024

@EMG70 would you have time to repeat any similar test, trying to download 10 Vimeo videos and also a Vimeo showcase (i.e. playlist) ?

Reason is that related PRs have just been merged:

As included in the just-published IIAB Calibre-Web weekly release:

@avni
Copy link
Member

avni commented Jun 8, 2024

Testing Jun 8, 2024 12pm ET - Individual Videos

iiab-diagnostics: https://dpaste.com/BBFFWJ7PQ

4 Vimeo video downloads attempted (3 from @EMG70 's list and 1 different one)

1 YouTube video

2 Bilibili videos

Summary of testing:

  • 7 videos, (4 Vimeo, 1 YouTube, 2 Bilibili)
  • 3 โœ… successful (2 Vimeo, 1 YouTube)
  • 1 โš ๏ธ thumbnail missing (1 Vimeo)
  • 3 โŒ unsuccessful (1 Vimeo, 2 Bilibili)

More next on Playlists/Showcases/Anthologies and Channels

@holta
Copy link
Member Author

holta commented Jun 8, 2024

  • https://vimeo.com/953721938 [Introduction to SQL] โŒ

    • Same error as @EMG70's. Log: [2024-06-08 13:07:30,650] ERROR {cps.tasks.download:122} An error occurred during the subprocess execution: 'NoneType' object is not subscriptable
  • https://vimeo.com/498384180 [SRUCBytes 3 - IoT] ๐Ÿฅ‰

    • Download successful, but no cover image. Same as @EMG70

@deldesir both errors above appear to be identical to @EMG70's test results 3 days prior:

Is this expected?

@deldesir
Copy link
Collaborator

deldesir commented Jun 8, 2024

Bilibili errors are expected due to yt-dlp/yt-dlp#10121. Vimeo ones need further investigation. I'll make an enhancement right away to read the error reported by yt-dlp (via xklb) instead of the exception at runtime.

@deldesir
Copy link
Collaborator

deldesir commented Jun 8, 2024

Cover for https://vimeo.com/498384180 went missing because it was placed in another directory.:

root@box:/usr/local/calibre-web-py3/cps/tasks# tree Vimeo/
Vimeo/
โ”œโ”€โ”€ Scotland's Rural College
โ”‚ย ย  โ””โ”€โ”€ 498384180.jpg
โ””โ”€โ”€ Scotlands Rural College
    โ””โ”€โ”€ SRUCBytes 3 IoT_54.00_[498384180].mp4

3 directories, 2 files

@holta
Copy link
Member Author

holta commented Jun 8, 2024

Many thanks to @chapmanjacobd for shining a light on the punctuation problem: (e.g. single quote in "Scotland's" above)

@avni
Copy link
Member

avni commented Jun 8, 2024

Testing Jun 8, 2024 5pm ET - YouTube Playlist

iiab-diagnostics: https://dpaste.com/HE465LXDW

I downloaded a playlist of 15 vidoes: LINK. 14 downloaded successfully, 1 had its thumbnail missing.

I liked that a Shelf for the playlist was automatically created so I can find these specific videos grouped together easily. It would be helpful to make that more clear on the Tasks page. The Tasks page has each video listed individually with no reference to the grouping.

Image

Image

@holta
Copy link
Member Author

holta commented Jun 9, 2024

@avni there's an apostrophe in the title of https://youtu.be/1M22zT_w0o8 ("Switzerland's most clickbaitable hike")

โ–ถ๏ธ This causes the thumbnail to fail to display, as reconfirmed by @deldesir, and on LRN2.ORG

โ–ถ๏ธ Please try again in a few days with a fresh install โ€” when this should very likely be fixed โ€” thanks to @chapmanjacobd's hard work!

@holta
Copy link
Member Author

holta commented Jun 9, 2024

https://youtu.be/1M22zT_w0o8 ("Switzerland's most clickbaitable hike")

ASIDE: Users are of course not thrilled that punctuation (e.g. apostrophes) are silently disappearing from original video titles...

  • This is a compromise for nowโ•

  • Possibly in future years we'll be able to respect original/full titles, including all punctuation, in all languagesโ”

PS the 255-character limit for PATH/FILENAME strings (in certain OS's) constrains us at the moment:

@avni
Copy link
Member

avni commented Jun 9, 2024

ASIDE: Users are of course not thrilled that punctuation (e.g. apostrophes) are silently disappearing from original video titles...

Have you already tried escaping the punctuation? A quick search shows a couple of ways to escape specific characters.

@holta
Copy link
Member Author

holta commented Jun 9, 2024

Have you already tried escaping the punctuation?

If only! Escaping would add extra characters when a book or video's PATH/FILENAME is already almost 255-characters (common OS limit) is... dangerous. Also, there's an 18-year backstory we need to respect, as much as possible, at least for now:

  1. Calibre and Calibre-Web have always modified authors' names and book titles, to become somewhat "safer" (and somewhat more readable) OS folder names.

    Naturally some people aren't thrilled about Calibre's compromise/hack/kludge of "dumbing down" author names and book titles for the sake of filesystems, 18 years later (fair criticism in 2024!!) But there's no completely magical solution on the immediate horizon, as outlined in 2020 here: https://www.mobileread.com/forums/showthread.php?t=330290

  2. Likewise, as outlined above, yt-dlp and xklb do something extremely similar for videos (i.e. converting every video's eccentric "original" author/title strings into a slightly safer OS PATH/FILENAME !)

Recap: There's no magic wand. As the de facto global standard is to respect /library/calibre-web/AUTHOR/TITLE for now ๐Ÿ˜‡

@holta
Copy link
Member Author

holta commented Jun 10, 2024

@EMG70 would you have time to battle-test a diversity of videos &/or playlists in coming days?

FYI a fresh install of IIAB Calibre-Web is best โ€” as these 2 PRs were just merged:

@EMG70
Copy link

EMG70 commented Jun 10, 2024

Will do . Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants