{"action":"created","comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/244641040","pull_request_review_id":188560945,"id":244641040,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDY0MTA0MA==","diff_hunk":"@@ -0,0 +1,83 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+import re\n+import json\n+\n+\n+class GramofonOnlineIE(InfoExtractor):\n+    _VALID_URL = r'https?://(?:www\\.)?gramofononline\\.hu(/(listen.php\\?.*track=)?(?P<id>[0-9]+))?'\n+\n+    _TESTS = [{\n+        'url': 'https://gramofononline.hu/1401835664/papageno-duett',\n+        'md5': '1b4bcabde313f09cdd48c463b54d8125',\n+        'info_dict': {\n+            'id': '1401835664',\n+            'title': 'Papageno-Duett ',\n+            'artist': 'Johanna Gadski, Otto Goritz, ismeretlen zenekar',\n+            'ext': 'mp3'\n+        }\n+    }, {\n+        'url': 'https://gramofononline.hu/listen.php?autoplay=true&track=1401835664',\n+        'md5': '1b4bcabde313f09cdd48c463b54d8125',\n+        'info_dict': {\n+            'id': '1401835664',\n+            'title': 'Papageno-Duett ',\n+            'artist': 'Johanna Gadski, Otto Goritz, ismeretlen zenekar',\n+            'ext': 'mp3'\n+        },\n+        'params': {\n+            'skip_download': True,\n+        }\n+    }]\n+\n+    def _get_entry(self, obj):\n+        id1 = obj.get(\"id\")\n+        source = obj.get(\"source\")\n+        name = obj.get(\"name\")\n+        artist = obj.get(\"artist\")\n+        # subname = obj.get(\"subname\")\n+        # paralelname = obj.get(\"paralelname\")\n+        # record = obj.get(\"record\")\n+        # long1 = obj.get(\"long\")\n+        # genre = obj.get(\"genre\")\n+        # author = obj.get(\"author\")\n+        # state = obj.get(\"state\")\n+        # matrica = obj.get(\"matrica\")\n+        # publisher = obj.get(\"publisher\")\n+        # img = obj.get(\"img\")\n+        return {\n+            'id': id1,\n+            'title': name,\n+            'http_headers': {'Referer': 'https://gramofononline.hu/' + id1},\n+            'artist': artist,\n+            'thumbnail': 'https://gramofononline.hu/getImage.php?id=' + source,\n+            'formats': [{\n+                'url': 'https://gramofononline.hu/go/master/' + source + '.mp3',\n+                'ext': 'mp3'\n+            }, {\n+                'url': 'https://gramofononline.hu/go/noise_reduction/' + source + '.mp3',\n+                'ext': 'mp3'\n+            }]\n+        }\n+\n+    def _real_extract(self, url):\n+        video_id = self._match_id(url)\n+        webpage = self._download_webpage(url, video_id)\n+\n+        for line in webpage.split(\"\\n\"):","path":"youtube_dl/extractor/gramofononline.py","position":69,"original_position":69,"commit_id":"17961ddf92304f4cf86da8ad1a2598b6cd314565","original_commit_id":"17961ddf92304f4cf86da8ad1a2598b6cd314565","user":{"login":"dstftw","id":1908898,"node_id":"MDQ6VXNlcjE5MDg4OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/1908898?v=4","gravatar_id":"","url":"https://api.github.com/users/dstftw","html_url":"https://github.com/dstftw","followers_url":"https://api.github.com/users/dstftw/followers","following_url":"https://api.github.com/users/dstftw/following{/other_user}","gists_url":"https://api.github.com/users/dstftw/gists{/gist_id}","starred_url":"https://api.github.com/users/dstftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstftw/subscriptions","organizations_url":"https://api.github.com/users/dstftw/orgs","repos_url":"https://api.github.com/users/dstftw/repos","events_url":"https://api.github.com/users/dstftw/events{/privacy}","received_events_url":"https://api.github.com/users/dstftw/received_events","type":"User","site_admin":false},"body":"No need for that.","created_at":"2019-01-01T15:49:12Z","updated_at":"2019-01-01T15:51:46Z","html_url":"https://github.com/rg3/youtube-dl/pull/18712#discussion_r244641040","pull_request_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments/244641040"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/18712#discussion_r244641040"},"pull_request":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712"}}},"pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712","id":241639422,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNjM5NDIy","html_url":"https://github.com/rg3/youtube-dl/pull/18712","diff_url":"https://github.com/rg3/youtube-dl/pull/18712.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/18712.patch","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/18712","number":18712,"state":"open","locked":false,"title":"[gramofononline] new extractor","user":{"login":"user706","id":39215612,"node_id":"MDQ6VXNlcjM5MjE1NjEy","avatar_url":"https://avatars0.githubusercontent.com/u/39215612?v=4","gravatar_id":"","url":"https://api.github.com/users/user706","html_url":"https://github.com/user706","followers_url":"https://api.github.com/users/user706/followers","following_url":"https://api.github.com/users/user706/following{/other_user}","gists_url":"https://api.github.com/users/user706/gists{/gist_id}","starred_url":"https://api.github.com/users/user706/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user706/subscriptions","organizations_url":"https://api.github.com/users/user706/orgs","repos_url":"https://api.github.com/users/user706/repos","events_url":"https://api.github.com/users/user706/events{/privacy}","received_events_url":"https://api.github.com/users/user706/received_events","type":"User","site_admin":false},"body":"## Please follow the guide below\r\n\r\n- You will be asked some questions, please read them **carefully** and answer honestly\r\n- Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x])\r\n- Use *Preview* tab to see how your *pull request* will actually look like\r\n\r\n---\r\n\r\n### Before submitting a *pull request* make sure you have:\r\n- [x] At least skimmed through [adding new extractor tutorial](https://github.com/rg3/youtube-dl#adding-support-for-a-new-site) and [youtube-dl coding conventions](https://github.com/rg3/youtube-dl#youtube-dl-coding-conventions) sections\r\n- [x] [Searched](https://github.com/rg3/youtube-dl/search?q=is%3Apr&type=Issues) the bugtracker for similar pull requests\r\n- [x] Checked the code with [flake8](https://pypi.python.org/pypi/flake8)\r\n\r\n### In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under [Unlicense](http://unlicense.org/). Check one of the following options:\r\n- [x] I am the original author of this code and I am willing to release it under [Unlicense](http://unlicense.org/)\r\n- [ ] I am not the original author of this code but it is in public domain or released under [Unlicense](http://unlicense.org/) (provide reliable evidence)\r\n\r\n### What is the purpose of your *pull request*?\r\n- [ ] Bug fix\r\n- [ ] Improvement\r\n- [x] New extractor\r\n- [ ] New feature\r\n\r\n---\r\n\r\n### Description of your *pull request* and other information\r\n\r\nNew extractor for https://gramofononline.hu","created_at":"2019-01-01T15:43:30Z","updated_at":"2019-01-01T15:51:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48c0022f33a5e6e5537d787050db8f10a47db6ee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712/commits","review_comments_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712/comments","review_comment_url":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/18712/comments","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/17961ddf92304f4cf86da8ad1a2598b6cd314565","head":{"label":"user706:gramofononline","ref":"gramofononline","sha":"17961ddf92304f4cf86da8ad1a2598b6cd314565","user":{"login":"user706","id":39215612,"node_id":"MDQ6VXNlcjM5MjE1NjEy","avatar_url":"https://avatars0.githubusercontent.com/u/39215612?v=4","gravatar_id":"","url":"https://api.github.com/users/user706","html_url":"https://github.com/user706","followers_url":"https://api.github.com/users/user706/followers","following_url":"https://api.github.com/users/user706/following{/other_user}","gists_url":"https://api.github.com/users/user706/gists{/gist_id}","starred_url":"https://api.github.com/users/user706/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user706/subscriptions","organizations_url":"https://api.github.com/users/user706/orgs","repos_url":"https://api.github.com/users/user706/repos","events_url":"https://api.github.com/users/user706/events{/privacy}","received_events_url":"https://api.github.com/users/user706/received_events","type":"User","site_admin":false},"repo":{"id":163455686,"node_id":"MDEwOlJlcG9zaXRvcnkxNjM0NTU2ODY=","name":"youtube-dl","full_name":"user706/youtube-dl","private":false,"owner":{"login":"user706","id":39215612,"node_id":"MDQ6VXNlcjM5MjE1NjEy","avatar_url":"https://avatars0.githubusercontent.com/u/39215612?v=4","gravatar_id":"","url":"https://api.github.com/users/user706","html_url":"https://github.com/user706","followers_url":"https://api.github.com/users/user706/followers","following_url":"https://api.github.com/users/user706/following{/other_user}","gists_url":"https://api.github.com/users/user706/gists{/gist_id}","starred_url":"https://api.github.com/users/user706/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user706/subscriptions","organizations_url":"https://api.github.com/users/user706/orgs","repos_url":"https://api.github.com/users/user706/repos","events_url":"https://api.github.com/users/user706/events{/privacy}","received_events_url":"https://api.github.com/users/user706/received_events","type":"User","site_admin":false},"html_url":"https://github.com/user706/youtube-dl","description":"Command-line program to download videos from YouTube.com and other video sites","fork":true,"url":"https://api.github.com/repos/user706/youtube-dl","forks_url":"https://api.github.com/repos/user706/youtube-dl/forks","keys_url":"https://api.github.com/repos/user706/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/user706/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/user706/youtube-dl/teams","hooks_url":"https://api.github.com/repos/user706/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/user706/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/user706/youtube-dl/events","assignees_url":"https://api.github.com/repos/user706/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/user706/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/user706/youtube-dl/tags","blobs_url":"https://api.github.com/repos/user706/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/user706/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/user706/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/user706/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/user706/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/user706/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/user706/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/user706/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/user706/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/user706/youtube-dl/subscription","commits_url":"https://api.github.com/repos/user706/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/user706/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/user706/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/user706/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/user706/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/user706/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/user706/youtube-dl/merges","archive_url":"https://api.github.com/repos/user706/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/user706/youtube-dl/downloads","issues_url":"https://api.github.com/repos/user706/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/user706/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/user706/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/user706/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/user706/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/user706/youtube-dl/releases{/id}","deployments_url":"https://api.github.com/repos/user706/youtube-dl/deployments","created_at":"2018-12-28T22:48:36Z","updated_at":"2018-12-28T22:48:57Z","pushed_at":"2019-01-01T15:46:31Z","git_url":"git://github.com/user706/youtube-dl.git","ssh_url":"git@github.com:user706/youtube-dl.git","clone_url":"https://github.com/user706/youtube-dl.git","svn_url":"https://github.com/user706/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":53612,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense","node_id":"MDc6TGljZW5zZTE1"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rg3:master","ref":"master","sha":"9b5c8751eeb10fd41c560696d73fec3401055ddc","user":{"login":"rg3","id":53487,"node_id":"MDQ6VXNlcjUzNDg3","avatar_url":"https://avatars0.githubusercontent.com/u/53487?v=4","gravatar_id":"","url":"https://api.github.com/users/rg3","html_url":"https://github.com/rg3","followers_url":"https://api.github.com/users/rg3/followers","following_url":"https://api.github.com/users/rg3/following{/other_user}","gists_url":"https://api.github.com/users/rg3/gists{/gist_id}","starred_url":"https://api.github.com/users/rg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rg3/subscriptions","organizations_url":"https://api.github.com/users/rg3/orgs","repos_url":"https://api.github.com/users/rg3/repos","events_url":"https://api.github.com/users/rg3/events{/privacy}","received_events_url":"https://api.github.com/users/rg3/received_events","type":"User","site_admin":false},"repo":{"id":1039520,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM5NTIw","name":"youtube-dl","full_name":"rg3/youtube-dl","private":false,"owner":{"login":"rg3","id":53487,"node_id":"MDQ6VXNlcjUzNDg3","avatar_url":"https://avatars0.githubusercontent.com/u/53487?v=4","gravatar_id":"","url":"https://api.github.com/users/rg3","html_url":"https://github.com/rg3","followers_url":"https://api.github.com/users/rg3/followers","following_url":"https://api.github.com/users/rg3/following{/other_user}","gists_url":"https://api.github.com/users/rg3/gists{/gist_id}","starred_url":"https://api.github.com/users/rg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rg3/subscriptions","organizations_url":"https://api.github.com/users/rg3/orgs","repos_url":"https://api.github.com/users/rg3/repos","events_url":"https://api.github.com/users/rg3/events{/privacy}","received_events_url":"https://api.github.com/users/rg3/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rg3/youtube-dl","description":"Command-line program to download videos from YouTube.com and other video sites","fork":false,"url":"https://api.github.com/repos/rg3/youtube-dl","forks_url":"https://api.github.com/repos/rg3/youtube-dl/forks","keys_url":"https://api.github.com/repos/rg3/youtube-dl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rg3/youtube-dl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rg3/youtube-dl/teams","hooks_url":"https://api.github.com/repos/rg3/youtube-dl/hooks","issue_events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/events{/number}","events_url":"https://api.github.com/repos/rg3/youtube-dl/events","assignees_url":"https://api.github.com/repos/rg3/youtube-dl/assignees{/user}","branches_url":"https://api.github.com/repos/rg3/youtube-dl/branches{/branch}","tags_url":"https://api.github.com/repos/rg3/youtube-dl/tags","blobs_url":"https://api.github.com/repos/rg3/youtube-dl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rg3/youtube-dl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rg3/youtube-dl/git/refs{/sha}","trees_url":"https://api.github.com/repos/rg3/youtube-dl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rg3/youtube-dl/statuses/{sha}","languages_url":"https://api.github.com/repos/rg3/youtube-dl/languages","stargazers_url":"https://api.github.com/repos/rg3/youtube-dl/stargazers","contributors_url":"https://api.github.com/repos/rg3/youtube-dl/contributors","subscribers_url":"https://api.github.com/repos/rg3/youtube-dl/subscribers","subscription_url":"https://api.github.com/repos/rg3/youtube-dl/subscription","commits_url":"https://api.github.com/repos/rg3/youtube-dl/commits{/sha}","git_commits_url":"https://api.github.com/repos/rg3/youtube-dl/git/commits{/sha}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/comments{/number}","issue_comment_url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments{/number}","contents_url":"https://api.github.com/repos/rg3/youtube-dl/contents/{+path}","compare_url":"https://api.github.com/repos/rg3/youtube-dl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rg3/youtube-dl/merges","archive_url":"https://api.github.com/repos/rg3/youtube-dl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rg3/youtube-dl/downloads","issues_url":"https://api.github.com/repos/rg3/youtube-dl/issues{/number}","pulls_url":"https://api.github.com/repos/rg3/youtube-dl/pulls{/number}","milestones_url":"https://api.github.com/repos/rg3/youtube-dl/milestones{/number}","notifications_url":"https://api.github.com/repos/rg3/youtube-dl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rg3/youtube-dl/labels{/name}","releases_url":"https://api.github.com/repos/rg3/youtube-dl/releases{/id}","deployments_url":"https://api.github.com/repos/rg3/youtube-dl/deployments","created_at":"2010-10-31T14:35:07Z","updated_at":"2019-01-01T15:49:28Z","pushed_at":"2019-01-01T15:48:07Z","git_url":"git://github.com/rg3/youtube-dl.git","ssh_url":"git@github.com:rg3/youtube-dl.git","clone_url":"https://github.com/rg3/youtube-dl.git","svn_url":"https://github.com/rg3/youtube-dl","homepage":"http://rg3.github.io/youtube-dl/","size":53664,"stargazers_count":45425,"watchers_count":45425,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7918,"mirror_url":null,"archived":false,"open_issues_count":2587,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense","node_id":"MDc6TGljZW5zZTE1"},"forks":7918,"open_issues":2587,"watchers":45425,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712"},"html":{"href":"https://github.com/rg3/youtube-dl/pull/18712"},"issue":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/18712"},"comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/issues/18712/comments"},"review_comments":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712/comments"},"review_comment":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rg3/youtube-dl/pulls/18712/commits"},"statuses":{"href":"https://api.github.com/repos/rg3/youtube-dl/statuses/17961ddf92304f4cf86da8ad1a2598b6cd314565"}},"author_association":"NONE"}}
{"actor":{"display_login":"dstftw"}}