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

Total NOOB here! I can't install the MacOS app on my Mac. The Terminal can't find "cd directory/containing/TwitchDownloaderCLI". I would love some assistance! #943

Closed
1 task done
KIBOLG opened this issue Jan 11, 2024 · 31 comments
Labels
question Further information is requested

Comments

@KIBOLG
Copy link

KIBOLG commented Jan 11, 2024

Checklist

Write stuff here

I read the README. I'm stuck at step 4.
I downloaded "TwitchDownloaderCLI-1.54.0-MacOSArm64.zip"
Double clicked on it to open it. Opened the Terminal to locate the extracted file.
(BTW I never used the Terminal before, so I don't know if I did things correctly)
I pasted "cd directory/containing/TwitchDownloaderCLI" in the Terminal and this is the result I got:
Screenshot 2024-01-11 at 3 59 27 PM
What did I do wrong? I don't know what to do from here.
Thanks so much in advance.

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 11, 2024

The latter part of the cd command in the readme is an example as there is no way for us to know where you extracted the binary to. If you extracted to your downloads for example, then the command may look like cd ~/Downloads/TwitchDownloaderCLI-1.54.0-MacOSArm64, which would bring you to the directory Home/Downloads/TwitchDownloaderCLI-1.54.0-MacOSArm64, where the TwitchDownloaderCLI binary should hopefully be. You can confirm that the binary is in the current directory with the command ls -l.

If you need further assistance with the CLI, you can see if #789 (comment) may have already an answer to your question.

@ScrubN ScrubN added the question Further information is requested label Jan 11, 2024
@KIBOLG
Copy link
Author

KIBOLG commented Jan 12, 2024

Ok. Thanks!
It's my first time using Terminal. I don't know anything about commands.
I followed through the steps mentioned on #789.
I got to the "./TwitchDownloaderCLI ffmpeg -d" part, but when I did that I got this pop up
Screenshot 2024-01-12 at 5 45 10 PM
I tried both clicking on OK and on "show in finder" and in both cases I only get this result:
"just@Justs-MacBook-Pro Downloads % ./TwitchDownloaderCLI ffmpeg -d
zsh: killed ./TwitchDownloaderCLI ffmpeg -d"
Is there a way to get passed that?
Thanks again!

@ComfortableMilk4454
Copy link

image
^ click show in finder on this popup, then right click on the highlighted file in your finder & click open, open it if it asks you if you want to again, wait for the terminal window to display [Process Completed], then close that terminal window and proceed with the steps in the readme.

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 12, 2024

Ok. Thanks! It's my first time using Terminal. I don't know anything about commands. I followed through the steps mentioned on #789. I got to the "./TwitchDownloaderCLI ffmpeg -d" part, but when I did that I got this pop up Screenshot 2024-01-12 at 5 45 10 PM I tried both clicking on OK and on "show in finder" and in both cases I only get this result: "just@Justs-MacBook-Pro Downloads % ./TwitchDownloaderCLI ffmpeg -d zsh: killed ./TwitchDownloaderCLI ffmpeg -d" Is there a way to get passed that? Thanks again!

Did you run chmod +x ffmpeg first? I believe that should circumvent the issue. If it does not, there should be a setting to allow unsigned software to run. If even that does not work, I believe there is a checkbox in the Finder file info/properties window to allow the app to run.

@KIBOLG
Copy link
Author

KIBOLG commented Jan 12, 2024

chmod +x ffmpeg

I tried that and it seemed to have worked. Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?

@KIBOLG
Copy link
Author

KIBOLG commented Jan 12, 2024

Ok. Thanks! It's my first time using Terminal. I don't know anything about commands. I followed through the steps mentioned on #789. I got to the "./TwitchDownloaderCLI ffmpeg -d" part, but when I did that I got this pop up Screenshot 2024-01-12 at 5 45 10 PM I tried both clicking on OK and on "show in finder" and in both cases I only get this result: "just@Justs-MacBook-Pro Downloads % ./TwitchDownloaderCLI ffmpeg -d zsh: killed ./TwitchDownloaderCLI ffmpeg -d" Is there a way to get passed that? Thanks again!

Did you run chmod +x ffmpeg first? I believe that should circumvent the issue. If it does not, there should be a setting to allow unsigned software to run. If even that does not work, I believe there is a checkbox in the Finder file info/properties window to allow the app to run.

I tried that command, but I get this: "zsh: command not found: chmod+x
just@Justs-MacBook-Pro ~ % "
Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI
just@Justs-MacBook-Pro ~ % "
So I don't really know what to do from here

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 12, 2024

Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?

Either or works

Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI
just@Justs-MacBook-Pro ~ % "
So I don't really know what to do from here

You are in your home directory. You need to change directories (cd) back to the directory containing TwitchDownloaderCLI

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?

Either or works

Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI
just@Justs-MacBook-Pro ~ % "
So I don't really know what to do from here

You are in your home directory. You need to change directories (cd) back to the directory containing TwitchDownloaderCLI

Now I'm getting this message:
"[ERROR] - Unable to update FFmpeg file permissions. Run 'sudo chmod +x ffmpeg' if further FFmpeg errors occur.
just@Justs-MacBook-Pro Downloads % sudo chmod +x ffmpeg
Password:"

There's a key icon next to "password:"
I'm sorry if I keep asking questions about this. I never used the terminal before, so I'm not familiar with any command or what the directory is, etc...

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 13, 2024 via email

@ComfortableMilk4454
Copy link

@KIBOLG would you mind hopping on a discord vc or something? im happy to walk you through the whole process if you wanna share ur screen or sum. kind of hard to explain step by step here. but im happy to try here too if youre not comfortable over discord. this is assuming @ScrubN 's latest comment didnt work for you

@ComfortableMilk4454
Copy link

side note @KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 13, 2024 via email

@ComfortableMilk4454
Copy link

could i make a video tutorial for both windows and macOS? cant do one for linux cuz i dont own a linux computer, let alone know what that is lol

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though.

On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.> wrote: side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: @.>

Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands.
I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run chmod +x ffmpeg"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 13, 2024 via email

@ComfortableMilk4454
Copy link

You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though.

On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.> wrote: side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: _@**.**_>

Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands. I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run chmod +x ffmpeg"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.

Would you like my help tho?

@ComfortableMilk4454
Copy link

Go on ahead. You can submit them in a PR or link them here and they can be added to the README.

On Sat., Jan. 13, 2024, 1:59 p.m. ComfortableMilk4454, < @.> wrote: could i make a video tutorial for both windows and macOS? cant do one for linux cuz i dont own a linux computer, let alone know what that is lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMHSMH3AD6KSCOFMSTYOLKRXAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YTIMZTGI . You are receiving this because you were mentioned.Message ID: @.>

Kk I will do this later today ET

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

So now I think the "chmod +x" and "chmod +x ffmpeg are installed or running (I'm not sure what is the right term), so I tried the following step and tried to download a vod using this command: "./TwitchDownloaderCLI videodownload --id -o out.mp4" but I'm getting this message:
"zsh: no such file or directory: 2019619501"

What am I doing wrong or what should I do?

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though.

On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.> wrote: side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: _@**.**_>

Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands. I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run chmod +x ffmpeg"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.

Would you like my help tho?

Sure. I don't think I can do the vc or screenshare right now, but if you want we can chat on discord.

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 13, 2024

Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands.
I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run chmod +x ffmpeg"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.

I will agree with you for cd directory/containing/TwitchDownloaderCLI, since many first time terminal users won't be familiar with navigating directories outside of their file manager.
For chmod +x ffmpeg I believe the readme adequately explains that the command gives executable rights to FFmpeg, however I am viewing this through the lens of someone familiar with the terminal.
Lastly for <vod-id-here>, I can understand users pasting the literal text or being unsure of what constitutes as an "id". This could probably be improved by linking the example commands section of the CLI README.

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

@ScrubN By the way, I really appreciate you trying to help me so far. I'm not complaining about it. I just don't have the knowledge to use some of this info.

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands.
I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run chmod +x ffmpeg"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.

I will agree with you for cd directory/containing/TwitchDownloaderCLI, since many first time terminal users won't be familiar with navigating directories outside of their file manager. For chmod +x ffmpeg I believe the readme adequately explains that the command gives executable rights to FFmpeg, however I am viewing this through the lens of someone familiar with the terminal. Lastly for <vod-id-here>, I can understand users pasting the literal text or being unsure of what constitutes as an "id". This could probably be improved by linking the example commands section of the CLI README.

Thanks for the consideration. I didn't enter , I entered the combination of numbers at the end of the vod url as suggested before and still got this message, so I must be doing something wrong

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 13, 2024

So now I think the "chmod +x" and "chmod +x ffmpeg are installed or running (I'm not sure what is the right term), so I tried the following step and tried to download a vod using this command: "./TwitchDownloaderCLI videodownload --id -o out.mp4" but I'm getting this message: "zsh: no such file or directory: 2019619501"

What am I doing wrong or what should I do?

It seems like you made a typo while typing your command. You want to make sure the video id is typed after --id. i.e. ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4

@ComfortableMilk4454
Copy link

Sure. I don't think I can do the vc or screenshare right now, but if you want we can chat on discord.

no worries, my cord is @jeff_winklepicker. ill be on the lookout for a fr

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

So now I think the "chmod +x" and "chmod +x ffmpeg are installed or running (I'm not sure what is the right term), so I tried the following step and tried to download a vod using this command: "./TwitchDownloaderCLI videodownload --id -o out.mp4" but I'm getting this message: "zsh: no such file or directory: 2019619501"
What am I doing wrong or what should I do?

It seems like you made a typo while typing your command. You want to make sure the video id is typed after --id. i.e. ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4

Ahh gotcha. I thought I had to leave the brackets in (<>). I tried without and now I got this message:

just@Justs-MBP downloads % ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4  
TwitchDownloaderCLI 1.54.0+eb8124ed0587bd362e7906773380b0d8de683388 Copyright (c) lay295 and contributors
[STATUS] - Fetching Video Info [1/5]Unhandled exception. System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).)
 ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at TwitchDownloaderCore.TwitchHelper.GetVideoPlaylist(Int32 videoId, String token, String sig) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCore/TwitchHelper.cs:line 87
   at TwitchDownloaderCore.VideoDownloader.GetQualityPlaylist(GqlVideoResponse videoInfo) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCore/VideoDownloader.cs:line 568
   at TwitchDownloaderCore.VideoDownloader.DownloadAsync(CancellationToken cancellationToken) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCore/VideoDownloader.cs:line 59
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean )
   at System.Threading.Tasks.Task.Wait(Int32 , CancellationToken )
   at System.Threading.Tasks.Task.Wait()
   at TwitchDownloaderCLI.Modes.DownloadVideo.Download(VideoDownloadArgs inputOptions) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCLI/Modes/DownloadVideo.cs:line 23
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at TwitchDownloaderCLI.Program.Main(String[] args) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCLI/Program.cs:line 33
zsh: abort      ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4
just@Justs-MBP downloads % 

@KIBOLG
Copy link
Author

KIBOLG commented Jan 13, 2024

@jeff_winklepicker

Cool! Sent you a fr. I'm @Globik

@ComfortableMilk4454
Copy link

just accepted it!

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 13, 2024

Ahh gotcha. I thought I had to leave the brackets in (<>). I tried without and now I got this message:

It looks like the VOD is subscriber-only. You will need to provide the program with an oauth token from your account.

The easiest way to get a twitch oauth is to use the dev tools in your browser. Here is a screenshot of how to get it from a chromium based browser, and it is the same process on Firefox but at Storage > Cookies instead of Application > Cookies. The cookie you are looking for is called auth-token. Do NOT share it with anyone, even me.

Normally the program would tell you that OAuth is needed to access the VOD, but I guess Twitch changed the response again so that'll need to be updated.
Also, there is a video tutorial on how to get your OAuth token in the windows GUI application. I should probably put that link somewhere in the CLI too.

@ComfortableMilk4454
Copy link

just uploaded the tutorial i just made to yt @KIBOLG i dmd u the link but ill paste it here too. also check your discord for the stuff you need to paste into terminal. https://youtu.be/ECO8GWWFGSw

@KIBOLG
Copy link
Author

KIBOLG commented Jan 15, 2024

Ahh gotcha. I thought I had to leave the brackets in (<>). I tried without and now I got this message:

It looks like the VOD is subscriber-only. You will need to provide the program with an oauth token from your account.

The easiest way to get a twitch oauth is to use the dev tools in your browser. Here is a screenshot of how to get it from a chromium based browser, and it is the same process on Firefox but at Storage > Cookies instead of Application > Cookies. The cookie you are looking for is called auth-token. Do NOT share it with anyone, even me.

Normally the program would tell you that OAuth is needed to access the VOD, but I guess Twitch changed the response again so that'll need to be updated. Also, there is a video tutorial on how to get your OAuth token in the windows GUI application. I should probably put that link somewhere in the CLI too.

Ah ok! That explains it! I finally got it to work! Thanks again for the help

@ScrubN
Copy link
Collaborator

ScrubN commented May 7, 2024

Closing due to stale

@ScrubN ScrubN closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants