{"action":"created","issue":{"url":"https://api.github.com/repos/jrudess/streamdvr/issues/68","repository_url":"https://api.github.com/repos/jrudess/streamdvr","labels_url":"https://api.github.com/repos/jrudess/streamdvr/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/jrudess/streamdvr/issues/68/comments","events_url":"https://api.github.com/repos/jrudess/streamdvr/issues/68/events","html_url":"https://github.com/jrudess/streamdvr/issues/68","id":349762176,"node_id":"MDU6SXNzdWUzNDk3NjIxNzY=","number":68,"title":"MFC plugin:  bug with adding new streamers from console command","user":{"login":"jrudess","id":22512163,"node_id":"MDQ6VXNlcjIyNTEyMTYz","avatar_url":"https://avatars1.githubusercontent.com/u/22512163?v=4","gravatar_id":"","url":"https://api.github.com/users/jrudess","html_url":"https://github.com/jrudess","followers_url":"https://api.github.com/users/jrudess/followers","following_url":"https://api.github.com/users/jrudess/following{/other_user}","gists_url":"https://api.github.com/users/jrudess/gists{/gist_id}","starred_url":"https://api.github.com/users/jrudess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrudess/subscriptions","organizations_url":"https://api.github.com/users/jrudess/orgs","repos_url":"https://api.github.com/users/jrudess/repos","events_url":"https://api.github.com/users/jrudess/events{/privacy}","received_events_url":"https://api.github.com/users/jrudess/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-11T20:39:05Z","updated_at":"2018-08-12T03:43:54Z","closed_at":null,"author_association":"OWNER","body":"When using 'add mfc streamer' the log says that mfc.yml was updated, but nothing is changed.  \r\n\r\nTemporary workaround is to run  the command a 2nd time which results in an error \"streamer is already in the capture list\" but then mfc.yml gets written with the new streamer."},"comment":{"url":"https://api.github.com/repos/jrudess/streamdvr/issues/comments/412316546","html_url":"https://github.com/jrudess/streamdvr/issues/68#issuecomment-412316546","issue_url":"https://api.github.com/repos/jrudess/streamdvr/issues/68","id":412316546,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjMxNjU0Ng==","user":{"login":"forsomefun2","id":25670034,"node_id":"MDQ6VXNlcjI1NjcwMDM0","avatar_url":"https://avatars1.githubusercontent.com/u/25670034?v=4","gravatar_id":"","url":"https://api.github.com/users/forsomefun2","html_url":"https://github.com/forsomefun2","followers_url":"https://api.github.com/users/forsomefun2/followers","following_url":"https://api.github.com/users/forsomefun2/following{/other_user}","gists_url":"https://api.github.com/users/forsomefun2/gists{/gist_id}","starred_url":"https://api.github.com/users/forsomefun2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forsomefun2/subscriptions","organizations_url":"https://api.github.com/users/forsomefun2/orgs","repos_url":"https://api.github.com/users/forsomefun2/repos","events_url":"https://api.github.com/users/forsomefun2/events{/privacy}","received_events_url":"https://api.github.com/users/forsomefun2/received_events","type":"User","site_admin":false},"created_at":"2018-08-12T03:43:54Z","updated_at":"2018-08-12T03:43:54Z","author_association":"NONE","body":"Edit:\r\nI got the old script I had for adding models from just the username to work again\r\n\r\nJust need to make this into a python script\r\nand run from python3\r\n\r\nIt also requires adding this to the config.yml\r\n[paths]\r\nwishlist =\r\n\r\nLastly just MFCAuto for python which goes into the \r\n/usr/lib/python3/dist-packages/  at least on ubuntu\r\nwhich is here:https://drive.google.com/open?id=195bTjTCp4nWN-UwebrH1T_JFzBJC2E\r\n\r\n\r\n\r\n```\r\n#!/usr/bin/env python3\r\nimport sys, configparser\r\nfrom mfcauto import Client\r\nimport asyncio\r\n\r\n\r\nConfig = configparser.ConfigParser()\r\nConfig.read(sys.path[0] + \"/config.yml\")\r\nwishlist = Config.get('paths', 'wishlist')\r\n\r\nf = open(wishlist, 'r')\r\nwanted = list(set(f.readlines()))\r\n\r\n\r\nasync def main(loop):\r\n    if len(sys.argv) != 2:\r\n        print('Must include a models name. ie: add.py AspenRae'.format(sys.argv[0]))\r\n        sys.exit(1)\r\n\r\n    modelName = sys.argv[1]\r\n\r\n    print(\"Querying MFC for {}\".format(modelName))\r\n    client = Client(loop)\r\n    await client.connect(False)\r\n    msg = await client.query_user(modelName)\r\n    client.disconnect()\r\n    print()\r\n\r\n    if msg == None:\r\n        print(\"User not found. Please check your spelling and try again\")\r\n    else:\r\n        if str(msg['uid'])+'\\n' in wanted:\r\n            print('{} is already in the wanted list. Models UID is {}'.format(modelName, str(msg['uid'])))\r\n        else:\r\n            f = open(wishlist, 'a')\r\n            f.write(' ')\r\n            f.write(' ')\r\n            f.write(\"-\")\r\n            f.write(' ')\r\n            f.write(str(msg['uid'])+'\\n')\r\n            print(\"{} with UID {} has been added to the list\".format(modelName, msg['uid']))\r\n        print()\r\n\r\nif __name__ == '__main__':\r\n    loop = asyncio.get_event_loop()\r\n    loop.run_until_complete(main(loop))\r\n    loop.close()\r\n\r\n```\r\n    "}}
{"actor":{"display_login":"forsomefun2"}}