Comments (14)
If you're using the yt-dlp command line, then why do you need MeTube? It'll be a lot easier to just download it and use it directly. In order to use it from inside MeTube, you have to mount the cookies.txt file from the outside. And also make sure it downloads into an externally mounted folder. But again, it will be a lot simpler to not use MeTube at all, and just use yt-dlp.
from metube.
I guess that's valid however, I prefer to use MeTube if possible due to the GUI, ease of use with Unraid, etc. I've never used yt-dlp and simply went to the command lines only to see if I can figure out the cookies issue. The GUI worked perfectly for me for "non-registered" items like youtube, etc. and I am looking to expand the use to Discovery Plus.
Currently, I have my downloads going to my cache drive mounted folder. When you indicate I need to mount cookies.txt file from the outside, I am not sure I understand what you mean. Is this something that's set up (ie. port, variable, etc) in Unraid? I am more of a novice and trying to figure things about but a kick in the right direction would be helpful.
Thanks for your time!
from metube.
I'm not familiar with Unraid specifically, so I can't really say how exactly it's done there. But the idea is that just as you mount your /downloads folder as a docker volume, you need to mount the cookies file into the container in the same way (as a volume). Let's say you mount it in the root directory as /cookies.txt
in the container. Then you can instruct the yt-dlp copy that MeTube runs to use this cookie file. That you will have to do via the YTDL_OPTIONS environment variable. You'll have to set it to {"cookiefile":"/cookies.txt"}
. If you're doing it directly via YAML, make sure you properly escape this string. This is the MeTube side of things; as to how to make all this happen in Unraid I don't know -- perhaps ask someone who's familiar with that platform, forward them these instructions and maybe they can translate them into the Unraid system.
from metube.
Thank you. I appreciate your time in helping this. I'll take what you said do do some trial and error. Thanks!
from metube.
You mentioned "YTDL_OPTIONS" as being the environment variable value; however the logs say "YTDL_OPTIONS is invalid"
Is this meant to be YTDL_FORMAT_OPTIONS?
from metube.
I just answered in the Unraid forums thread (I guess it doesn't show yet because it has to go through moderation). I'll paste it here as well:
@hawkins12, as I said I know nothing about Unraid but still these don't look right... In the mount section, I think you want to use /mnt/user/Downloads/MeTube/cookies.txt as the host path. And in the environment variable section, you'll probably want YTDL_OPTIONS as the key, and the JSON string {"cookiefile":"/cookies.txt"} as the value.
from metube.
Hi, I'm having trouble using this option, coming from #32
- So I've installed the extension Get Cookies
- Extracted Tiktok cookies
- Mapped the folder that contains the cookie file
- Verified the file is seen in the container
However, TikTok videos still fail.
This is the first time doing this so I might be missing something obvious.
I'm trying with a generic video like this one
from metube.
Can you try running yt-dlp from the command line within the container to download the video, specifying the cookie file via the --cookies argument? This will tell us whether it's a general problem with yt-dlp not being able to use these cookies to download the video properly, or whether it's a specific problem with the way MeTube invokes yt-dlp.
from metube.
Can you try running yt-dlp from the command line within the container to download the video, specifying the cookie file via the --cookies argument? This will tell us whether it's a general problem with yt-dlp not being able to use these cookies to download the video properly, or whether it's a specific problem with the way MeTube invokes yt-dlp.
Can I do this from the container terminal or should I install yt-dlp on my PC?
from metube.
Within the container (the same place where you checked for the existence of the cookie file in the screenshot above, I assumed you used docker exec
to run a shell within the container, right?)
You should have the yt-dlp command ready there.
from metube.
So ironic, Tiktok is down now. Will try later!
from metube.
Yes, I get the same error. Should I file an issue with yt-dlp?
Here's a verbosed screenshot
from metube.
EDIT: ok, it's broken in yt-dlp 2021.09.02. they have already committed the fix but it's yet to be released.
Apparently TikTow won't even require a cookie.
Sorry for jumping in this case.
from metube.
No problem. Glad you figured it out.
from metube.
Related Issues (20)
- PORT environment variable (feature request) HOT 2
- Issue with File Deletion in Metube Deployment HOT 2
- Allow for personalized branding? HOT 4
- Download progress bars are not displaying correctly using YTDL_OPTIONS HOT 2
- Feature request: authentication screen by default HOT 1
- FR: Optional download folder HOT 2
- FR: Add a Trim feature HOT 1
- minor documentation update on usage of YTDL_OPTIONS HOT 1
- Help with Youtube-dlp HOT 8
- Memory leak when downloading many videos. HOT 4
- ERROR: This video is only available to Music Premium
- ERROR: This video is only available to Music Premium Members HOT 1
- Start a "live" scheduled download doesn't give the hand HOT 5
- issue with tamil/emoji/other characters in youtube file names HOT 16
- Subtitles not downloading HOT 4
- [Feature Request] CSS file for configuration HOT 1
- [Feature Request] HOT 2
- Password protect metube UI HOT 5
- Facebook videos will download but not Facebook reels HOT 5
- Support H.264 as default HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metube.