xbgmsharp / trakt

Import CSV to Trakt.tv list and Export Trakt.tv list into CSV
GNU General Public License v3.0
281 stars 47 forks source link

Running $ vim config.ini on windows doesn't do anything after adding in client ID and client secret #62

Closed vrooms-leucine0i closed 4 months ago

vrooms-leucine0i commented 4 months ago

I type in "vim config.ini" and get this:

[TRAKT]
client_id = (client ID here)
client_secret = (Client Secret here)
access_token =
refresh_token =
baseurl = https://api-v2launch.trakt.tv

[SETTINGS]
proxy = False
proxy_host = https://127.0.0.1
proxy_port = 3128

~
~
~
~
~
~
~
~
~
~
config.ini [dos] (10:13 13/05/2024)                                   12,0-1 All
Type  :qa  and press <Enter> to exit Vim
vrooms-leucine0i commented 4 months ago

Also when I try "$ python export_trakt.py" I get this:

Options: Namespace(config='config.ini', output=None, format='imdb', type='movies', list='history', userlist=None, listid=None, clean=False, dup=False, sortorder='desc', verbose=True)
Config file: config.ini
Warning, no access token found. Authentification is required
Warning, no refresh token found. Authentification is required
Config: <configparser.ConfigParser object at 0x000001312648ECB0>
Trakt, no token found in config file, requesting authorization_code
Manual authentification. Open the link in a browser and paste the pincode when prompted
https://trakt.tv/oauth/authorize?response_type=code&client_id=(CLIENT ID HERE)&redirect_uri=urn:ietf:wg:oauth:2.0:oob
Input PIN: (PIN HERE)
Traceback (most recent call last):
  File "C:\Users\K\Downloads\letterboxd-06_force_damage-2024-05-13-02-54-utc\trakt-master\export_trakt.py", line 605, in <module>
    main()
  File "C:\Users\K\Downloads\letterboxd-06_force_damage-2024-05-13-02-54-utc\trakt-master\export_trakt.py", line 400, in main
    api_auth(options, config, False)
  File "C:\Users\K\Downloads\letterboxd-06_force_damage-2024-05-13-02-54-utc\trakt-master\export_trakt.py", line 173, in api_auth
    pincode = str(input('Input PIN:'))
  File "C:\Users\K\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 22, in decode
    def decode(self, input, final=False):
KeyboardInterrupt
xbgmsharp commented 4 months ago

Not quite sure what you mean. what is the issue? KeyboardInterrupt is you.

vrooms-leucine0i commented 4 months ago

When I type vim config.ini, I get the error on the top part, where it doesn't give me an access token or reset token. It just sits there.

And when I type python export_trakt.py It says there's no access or refresh token found.

I'm not sure why it's saying keyboard interrupt because I'm not typing anything other than the above commands and hitting enter

vrooms-leucine0i commented 4 months ago

Sorry I'm very dumb when it comes to computers. I'm just trying to export my 2200 entry Letterboxd diary into Trakt, without having to do it manually

xbgmsharp commented 4 months ago

Please follow the usage documentation. You don't have to use vim, you can use any text editor. then follow the instruction, you need to input the validation code from Trakt. https://github.com/xbgmsharp/trakt?tab=readme-ov-file#usage

vrooms-leucine0i commented 4 months ago

So I've done that, I've entered in the client ID and Client secret, then I get to the step where it says to type "$ vim config.ini" Which when I do, gives me the output referenced here - https://github.com/xbgmsharp/trakt/issues/62#issue-2292980248

and does not give me any tokens or anything. I've put in the code I get from trakt as well and it doesn't do anything

vrooms-leucine0i commented 4 months ago

I'm not sure why this was closed, the issue is still happening