Skip to content

Should bare URLs like "youtu.be/Mt187r0Ec9A" work in future? #5

Description

@holta

@deldesir FYI attempting https://www.youtube.com/shorts/Mt187r0Ec9A returned "Invalid YouTube URL"

So I tried bare URL "youtu.be/Mt187r0Ec9A" (which works in a browser).

FWIW it failed with tail -f /var/log/calibre-log showing the following:

[2023-10-12 20:54:34,980] ERROR {cps.editbooks:338} Subprocess error (return code 1): WARNING: [generic] The url doesn't specify the protocol, trying with http
Importing playlist-less media youtu.be/Mt187r0Ec9A
, --------YB LOG--------\n\n
2023-10-12 20:54:30 - Moving /var/tmp/download.db aside if it already exists.
--------YB LOG--------\n\n
2023-10-12 20:54:30 - Running command: lb tubeadd /var/tmp/download.db youtu.be/Mt187r0Ec9A && lb dl /var/tmp/download.db --video youtu.be/Mt187r0Ec9A

--------YB LOG--------\n\n
2023-10-12 20:54:34 - An error occurred while running the command. Please check /var/log/yb.log  for more details.

[2023-10-12 20:54:34,983]  INFO {cps.editbooks:364} Subprocess result: (False, "Subprocess error (return code 1): WARNING: [generic] The url doesn't specify the protocol, trying with http\nImporting playlist-less media youtu.be/Mt187r0Ec9A\n, --------YB LOG--------\\n\\n\n2023-10-12 20:54:30 - Moving /var/tmp/download.db aside if it already exists.\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:30 - Running command: lb tubeadd /var/tmp/download.db youtu.be/Mt187r0Ec9A && lb dl /var/tmp/download.db --video youtu.be/Mt187r0Ec9A\n\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:34 - An error occurred while running the command. Please check /var/log/yb.log  for more details.\n", '--------YB LOG--------\\n\\n\n2023-10-12 20:54:30 - Moving /var/tmp/download.db aside if it already exists.\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:30 - Running command: lb tubeadd /var/tmp/download.db youtu.be/Mt187r0Ec9A && lb dl /var/tmp/download.db --video youtu.be/Mt187r0Ec9A\n\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:34 - An error occurred while running the command. Please check /var/log/yb.log  for more details.\n', "WARNING: [generic] The url doesn't specify the protocol, trying with http\nImporting playlist-less media youtu.be/Mt187r0Ec9A\n")
[2023-10-12 20:54:37,994] ERROR {cps.editbooks:338} Subprocess error (return code 1): WARNING: [generic] The url doesn't specify the protocol, trying with http
Importing playlist-less media youtu.be/Mt187r0Ec9A
, --------YB LOG--------\n\n
2023-10-12 20:54:34 - Moving /var/tmp/download.db aside if it already exists.
--------YB LOG--------\n\n
2023-10-12 20:54:34 - Running command: lb tubeadd /var/tmp/download.db youtu.be/Mt187r0Ec9A && lb dl /var/tmp/download.db --video youtu.be/Mt187r0Ec9A

--------YB LOG--------\n\n
2023-10-12 20:54:37 - An error occurred while running the command. Please check /var/log/yb.log  for more details.

[2023-10-12 20:54:37,994]  INFO {cps.editbooks:364} Subprocess result: (False, "Subprocess error (return code 1): WARNING: [generic] The url doesn't specify the protocol, trying with http\nImporting playlist-less media youtu.be/Mt187r0Ec9A\n, --------YB LOG--------\\n\\n\n2023-10-12 20:54:34 - Moving /var/tmp/download.db aside if it already exists.\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:34 - Running command: lb tubeadd /var/tmp/download.db youtu.be/Mt187r0Ec9A && lb dl /var/tmp/download.db --video youtu.be/Mt187r0Ec9A\n\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:37 - An error occurred while running the command. Please check /var/log/yb.log  for more details.\n", '--------YB LOG--------\\n\\n\n2023-10-12 20:54:34 - Moving /var/tmp/download.db aside if it already exists.\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:34 - Running command: lb tubeadd /var/tmp/download.db youtu.be/Mt187r0Ec9A && lb dl /var/tmp/download.db --video youtu.be/Mt187r0Ec9A\n\n--------YB LOG--------\\n\\n\n2023-10-12 20:54:37 - An error occurred while running the command. Please check /var/log/yb.log  for more details.\n', "WARNING: [generic] The url doesn't specify the protocol, trying with http\nImporting playlist-less media youtu.be/Mt187r0Ec9A\n")
# cat /var/log/yb.log
No media found
No media found
# lb --version
2.2.112

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions