Since there is no answers, and even after many attempts of searching over other websites, I decided to switch to yt-dl (Thank you @guiverc).
I am using currently yt-dlp (the ameliorated version of yt-dl) without GUI (I think there are versions of yt-dlp with GUI), and honestly, it's the right tool in the right place, it has many features that don't exist in XDM, and more importantly, the downloading speed is high and better.
1. To install it:
sudo add-apt-repository ppa:yt-dlp/stable
sudo apt update
sudo apt install yt-dlp
2. To show the video qualities available to download:
yt-dlp -F [URL_of_youtube_video]
3. To download a 720p (or 360p) video:
yt-dlp -f 22 (or 18) [URL_of_youtube_video]
4. You can also download any YT playlist, and resume after the interruption, the following command is very useful:
yt-dlp -ciw [URL_of_youtube_playlist]
or
yt-dlp -ciw [ID_of_youtube_playlist]
-i
, --ignore-errors
: Continue on download errors, for example to skip unavailable videos in a playlist
-w
, --no-overwrites
: Do not overwrite files
-c
, --continue
: Force resume of partially downloaded files.
(Source: yt-dlp)
May be you will face an error about "brotli", just install it:
sudo apt install python3-brotli