Guide:Odysee Channel/Playlist Download (1k+ compatible): Difference between revisions

added video download explanation
(added tutorial for channel download)
 
(added video download explanation)
Line 1: Line 1:
== Tutorial on Using the .sh Script to Download Video Links from an Odysee/LBRY Channel or Playlist ==
== Using .sh Script to Download Video Links from an Odysee/LBRY Channel or Playlist ==


This tutorial explains how to use two Bash scripts to download a list of video links from an Odysee/LBRY channel or playlist, including handling the API's limit of 1000 video links. The scripts work on macOS, Windows (with a Bash shell), and Linux.
This tutorial explains how to use two Bash scripts to download a list of video links from an Odysee/LBRY channel or playlist, including handling the API's limit of 1000 video links. The scripts work on macOS, Windows (with a Bash shell), and Linux.
Line 246: Line 246:
* '''Command Not Found''': If `curl` or `jq` commands are not found, ensure they are installed correctly.
* '''Command Not Found''': If `curl` or `jq` commands are not found, ensure they are installed correctly.
* '''Network Issues''': Ensure you have a stable internet connection, as the script relies on network requests.
* '''Network Issues''': Ensure you have a stable internet connection, as the script relies on network requests.
== Using yt-dlp to Download Videos Using a List of URLs ==
This part explains how to use `yt-dlp` to download videos from a list of URLs. The command provided will force the use of IPv4, read URLs from a list, and keep track of downloaded videos to avoid duplicates.
=== Prerequisites ===
* '''yt-dlp''': A command-line program to download videos from YouTube and other video platforms.
* '''A text file with a list of URLs''': The file should contain one URL per line.
* '''A text file to keep track of downloaded videos''': This file will be used to prevent downloading the same video more than once.
=== Installing yt-dlp ===
==== On macOS ====
# '''Open Terminal''': You can find it in Applications > Utilities > Terminal.
# '''Install yt-dlp''':
<syntaxhighlight lang="bash">
  brew install yt-dlp
</syntaxhighlight>
==== On Windows ====
# '''Open Command Prompt or PowerShell'''.
# '''Install yt-dlp''':
<syntaxhighlight lang="bash">
  pip install yt-dlp
</syntaxhighlight>
# If `pip` is not installed, install it by downloading `get-pip.py` from https://bootstrap.pypa.io/get-pip.py and running:
<syntaxhighlight lang="bash">
  python get-pip.py
</syntaxhighlight>
==== On Linux ====
# '''Open Terminal'''.
# '''Install yt-dlp''':
<syntaxhighlight lang="bash">
  sudo apt update
  sudo apt install yt-dlp
</syntaxhighlight>
# Alternatively, you can use `pip`:
<syntaxhighlight lang="bash">
  pip install yt-dlp
</syntaxhighlight>
=== Preparing the List of URLs ===
1. '''Create a text file named `list.txt`''':
<syntaxhighlight lang="bash">
  nano list.txt
</syntaxhighlight>
2. '''Add URLs to the file''': Each line should contain one video URL. Save and close the file.
=== Preparing the Download Archive File ===
1. '''Create a text file named `myarchive.txt`''':
<syntaxhighlight lang="bash">
  touch myarchive.txt
</syntaxhighlight>
=== Using the Command ===
To download videos from the list of URLs, use the following command:
<syntaxhighlight lang="bash">
yt-dlp --force-ipv4 -a list.txt --download-archive myarchive.txt
</syntaxhighlight>
==== Command Explanation ====
* `yt-dlp`: The command to run yt-dlp.
* `--force-ipv4`: Forces the use of IPv4.
* `-a list.txt`: Specifies the input file (`list.txt`) that contains the list of video URLs.
* `--download-archive myarchive.txt`: Specifies the archive file (`myarchive.txt`) to keep track of downloaded videos.
=== Running the Command ===
==== On macOS ====
# '''Open Terminal'''.
# '''Navigate to the directory containing `list.txt` and `myarchive.txt`''':
<syntaxhighlight lang="bash">
  cd path/to/your/files
</syntaxhighlight>
# '''Run the command''':
<syntaxhighlight lang="bash">
  yt-dlp --force-ipv4 -a list.txt --download-archive myarchive.txt
</syntaxhighlight>
==== On Windows ====
# '''Open Command Prompt or PowerShell'''.
# '''Navigate to the directory containing `list.txt` and `myarchive.txt`''':
<syntaxhighlight lang="bash">
  cd path\to\your\files
</syntaxhighlight>
# '''Run the command''':
<syntaxhighlight lang="bash">
  yt-dlp --force-ipv4 -a list.txt --download-archive myarchive.txt
</syntaxhighlight>
==== On Linux ====
# '''Open Terminal'''.
# '''Navigate to the directory containing `list.txt` and `myarchive.txt`''':
<syntaxhighlight lang="bash">
  cd path/to/your/files
</syntaxhighlight>
# '''Run the command''':
<syntaxhighlight lang="bash">
  yt-dlp --force-ipv4 -a list.txt --download-archive myarchive.txt
</syntaxhighlight>
=== Troubleshooting ===
* '''Permission Denied''': If you encounter a permission denied error, ensure you have the necessary permissions to execute the command.
* '''Command Not Found''': Ensure `yt-dlp` is installed correctly and is in your system's PATH.
* '''Network Issues''': Ensure you have a stable internet connection, as the command relies on network requests.