{"action":"created","issue":{"url":"https://api.github.com/repos/XaF/TraktForVLC/issues/40","repository_url":"https://api.github.com/repos/XaF/TraktForVLC","labels_url":"https://api.github.com/repos/XaF/TraktForVLC/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/XaF/TraktForVLC/issues/40/comments","events_url":"https://api.github.com/repos/XaF/TraktForVLC/issues/40/events","html_url":"https://github.com/XaF/TraktForVLC/issues/40","id":133107729,"number":40,"title":"Problem \"loading\"  .plist","user":{"login":"odlmag","id":17186589,"avatar_url":"https://avatars.githubusercontent.com/u/17186589?v=3","gravatar_id":"","url":"https://api.github.com/users/odlmag","html_url":"https://github.com/odlmag","followers_url":"https://api.github.com/users/odlmag/followers","following_url":"https://api.github.com/users/odlmag/following{/other_user}","gists_url":"https://api.github.com/users/odlmag/gists{/gist_id}","starred_url":"https://api.github.com/users/odlmag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odlmag/subscriptions","organizations_url":"https://api.github.com/users/odlmag/orgs","repos_url":"https://api.github.com/users/odlmag/repos","events_url":"https://api.github.com/users/odlmag/events{/privacy}","received_events_url":"https://api.github.com/users/odlmag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T22:44:36Z","updated_at":"2016-02-11T23:02:14Z","closed_at":null,"body":"Hello,\r\n\r\nI'm on a Mac OSX.\r\nI have similar problems as some other here, as I can't save the VLC settings and the .plist doesn't seem to be saved when using the \"load\" command.\r\n\r\n==== VLC problem =====\r\n\r\nStarting with the VLC problem, i'm picking up where \"alltimemarr\" started the search in a previous thread.\r\nIf I set the settings according to the instructions, and then restart VLC it gives me similar results when using the terminal command\r\n`telnet localhost 4222`\r\n(unable to connect)\r\n\r\nChanging the setting sometimes let me access it with the terminal, and sometimes it gives me the same results.\r\n\r\nTyping the commands:\r\n`echo $VLC_PLUGIN_PATH` result = white line\r\n`ls /usr/lib | grep vlc`                result = nothing\r\n`ls /usr/local/lib | grep vlc`        result = no such file...\r\n\r\nTyping:\r\n`ls -AlsR /Applications/VLC.app/Contents/MacOS/`\r\ngives me a big list of which im not sure what to do...?\r\nThis is where \"altimemarr\" dropped out of the discussion, so where to go from here?\r\n\r\n===== .plist problem ======\r\n\r\nSo here's my .plist\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\"\r\n    \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n<plist version=\"1.0\">\r\n<dict>\r\n    <key>Label</key>\r\n    <string>org.user.TraktForVLC</string>\r\n    <key>ProgramArguments</key>\r\n    <array>\r\n        <string>[/Library/Frameworks/Python.framework/Versions/2.7/bin/python]</string>\r\n        <string>[/Users/Magnus/TraktForVLC/TraktForVLC.py]</string>\r\n    </array>\r\n    <key>WorkingDirectory</key>\r\n    <string>[/Users/Magnus/TraktForVLC]</string>\r\n    <key>RunAtLoad</key>\r\n    <true />\r\n    <key>LaunchOnlyOnce</key>\r\n    <true />\r\n    <key>KeepAlive</key>\r\n    <true />\r\n</dict>\r\n</plist>\r\n```\r\n\r\nI can find a \"python\" file at the directory /usr/bin/python/, but typing `which python` in the terminal gives me the above path. (I guess i have two different python, since I installed a new one yesterday when installing CouchPotato?)\r\n\r\nWhen typing in the terminal:\r\n`launchctl load ~/Library/LaunchAgents/org.TraktForVLC.plist`\r\nnothing seems to happen. And when I check `launchctl list` I can't find it in the list...\r\nWhat am I missing?\r\n\r\n====== Misc =====\r\n\r\nWhen checking through the \"TraktClient.py\" code there are some code where username & password are requested, as the Trakt.tv code and tokens.\r\nShould these be manually updated or am I out of bounds looking in there?\r\nI have also put the code from Trakt.tv in \".ini\" file, but I read somewhere that these codes get outdated after some time?\r\n\r\nLong post, sorry!\r\nBut glad if someone could help out!\r\n\r\n/ odlmag"},"comment":{"url":"https://api.github.com/repos/XaF/TraktForVLC/issues/comments/183093609","html_url":"https://github.com/XaF/TraktForVLC/issues/40#issuecomment-183093609","issue_url":"https://api.github.com/repos/XaF/TraktForVLC/issues/40","id":183093609,"user":{"login":"XaF","id":1548665,"avatar_url":"https://avatars.githubusercontent.com/u/1548665?v=3","gravatar_id":"","url":"https://api.github.com/users/XaF","html_url":"https://github.com/XaF","followers_url":"https://api.github.com/users/XaF/followers","following_url":"https://api.github.com/users/XaF/following{/other_user}","gists_url":"https://api.github.com/users/XaF/gists{/gist_id}","starred_url":"https://api.github.com/users/XaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XaF/subscriptions","organizations_url":"https://api.github.com/users/XaF/orgs","repos_url":"https://api.github.com/users/XaF/repos","events_url":"https://api.github.com/users/XaF/events{/privacy}","received_events_url":"https://api.github.com/users/XaF/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T23:02:14Z","updated_at":"2016-02-11T23:02:14Z","body":"### VLC Problem\r\nFirst thing, if the problem is about not having the VLC settings saved when you put 'rc' manually, it is highly possible that the 'rc' is still active even if you don't see it in the list. It is a VLC problem. Of course, if you edit and save the settings again and that case is empty (not containing 'rc' anymore), it will then be inactive... It is a VLC problem, unfortunately. In my case, 'rc' is active even through it doesn't appear in the list (I get 'oldrc' by checking 'RC', but 'oldrc' is not as good as 'rc' for what `TrackForVLC` is doing).\r\n\r\nIf the problem is at another level, could you please explain it better? I would need to know what are the results of running `TraktForVLC` in your case (DEBUG mode -> log file).\r\n\r\n### .plist Problem\r\nI'm not using Mac so that's just a wild guess to help you. However, I think your file is not formatted the right way. You left the `[` and `]` around your values. For instance, you put:\r\n```\r\n        <string>[/Library/Frameworks/Python.framework/Versions/2.7/bin/python]</string>\r\n```\r\nWhere you should have put:\r\n```\r\n        <string>/Library/Frameworks/Python.framework/Versions/2.7/bin/python</string>\r\n```\r\n\r\n### Misc\r\nThe `TraktClient.py` file has been built to sustain the old way of connection to Trakt during the changes in the API previously, as both ways were valid, to let time to users to change from one way to the other. You should now use the PIN auth. The PIN auth expires after a period of time, but if you launch `TraktForVLC` before it expires, it will automatically be replaced by authentication tokens that will allow `TraktForVLC` to authenticate to Trakt. `TraktForVLC` will then automatically renew those tokens on a regular basis without needing your intervention, so you should be good then!"}}