{"action":"created","comment":{"url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/comments/219675945","pull_request_review_id":157914498,"id":219675945,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTY3NTk0NQ==","diff_hunk":"@@ -0,0 +1,243 @@\n+package eu.kanade.tachiyomi.extension.ru.mangalib\n+\n+import eu.kanade.tachiyomi.network.GET\n+import eu.kanade.tachiyomi.source.model.*\n+import eu.kanade.tachiyomi.source.online.ParsedHttpSource\n+import okhttp3.HttpUrl\n+import okhttp3.Request\n+import org.jsoup.nodes.Document\n+import org.jsoup.nodes.Element\n+import java.text.SimpleDateFormat\n+import java.util.*\n+import org.json.JSONObject\n+\n+class Mangalib : ParsedHttpSource() {\n+\n+    override val id: Long = 11\n+\n+    override val name = \"Mangalib\"\n+\n+    override val baseUrl = \"https://mangalib.me\"\n+\n+    override val lang = \"ru\"\n+\n+    override val supportsLatest = true\n+\n+    override fun popularMangaRequest(page: Int): Request =\n+            GET(\"$baseUrl/manga-list?dir=desc&page=$page&sort=views\", headers)\n+\n+    override fun popularMangaSelector() = \"div.manga-list-item\"\n+\n+    override fun popularMangaFromElement(element: Element): SManga {\n+        val item = element.select(\"a.manga-list-item__content\").first()\n+        val manga = SManga.create()\n+        manga.thumbnail_url = item.attr(\"data-src\")\n+        manga.setUrlWithoutDomain(item.attr(\"href\"))\n+        manga.title = item.select(\"h3.manga-list-item__name\").first().text()\n+        return manga\n+    }\n+\n+    override fun popularMangaNextPageSelector() = \"a[rel=\\\"next\\\"]\"\n+\n+    override fun mangaDetailsParse(document: Document): SManga {\n+        val body = document.select(\"div.section__body\").first()\n+        val manga = SManga.create()\n+        manga.title = body.select(\".manga__title\").text()\n+        manga.thumbnail_url = body.select(\".manga__cover\").attr(\"src\")\n+        manga.author = body.select(\".info-list__row:nth-child(2) > a\").text()\n+        manga.artist = body.select(\".info-list__row:nth-child(3) > a\").text()\n+        manga.status = when (body.select(\".info-list__row:nth-child(4) > span\").text()) {\n+            \"продолжается\" -> SManga.ONGOING\n+            \"завершен\" -> SManga.COMPLETED\n+            else -> SManga.UNKNOWN\n+        }\n+        manga.genre = body.select(\".info-list__row:has(strong:contains(Жанры)) > a\").joinToString { it.text() }","path":"src/ru/mangalib/src/eu/kanade/tachiyomi/extension/ru/mangalib/Mangalib.kt","position":54,"original_position":54,"commit_id":"5e11b36c7dea0ba068151314122ccb1df834a9da","original_commit_id":"5e11b36c7dea0ba068151314122ccb1df834a9da","user":{"login":"Pavkazzz","id":3702034,"node_id":"MDQ6VXNlcjM3MDIwMzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3702034?v=4","gravatar_id":"","url":"https://api.github.com/users/Pavkazzz","html_url":"https://github.com/Pavkazzz","followers_url":"https://api.github.com/users/Pavkazzz/followers","following_url":"https://api.github.com/users/Pavkazzz/following{/other_user}","gists_url":"https://api.github.com/users/Pavkazzz/gists{/gist_id}","starred_url":"https://api.github.com/users/Pavkazzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pavkazzz/subscriptions","organizations_url":"https://api.github.com/users/Pavkazzz/orgs","repos_url":"https://api.github.com/users/Pavkazzz/repos","events_url":"https://api.github.com/users/Pavkazzz/events{/privacy}","received_events_url":"https://api.github.com/users/Pavkazzz/received_events","type":"User","site_admin":false},"body":"I'm not sure, but this field need to be with comma","created_at":"2018-09-22T16:22:36Z","updated_at":"2018-09-22T16:37:39Z","html_url":"https://github.com/inorichi/tachiyomi-extensions/pull/504#discussion_r219675945","pull_request_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/comments/219675945"},"html":{"href":"https://github.com/inorichi/tachiyomi-extensions/pull/504#discussion_r219675945"},"pull_request":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504","id":217458437,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDU4NDM3","html_url":"https://github.com/inorichi/tachiyomi-extensions/pull/504","diff_url":"https://github.com/inorichi/tachiyomi-extensions/pull/504.diff","patch_url":"https://github.com/inorichi/tachiyomi-extensions/pull/504.patch","issue_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues/504","number":504,"state":"open","locked":false,"title":"Added mangalib source","user":{"login":"hey-red","id":1738743,"node_id":"MDQ6VXNlcjE3Mzg3NDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1738743?v=4","gravatar_id":"","url":"https://api.github.com/users/hey-red","html_url":"https://github.com/hey-red","followers_url":"https://api.github.com/users/hey-red/followers","following_url":"https://api.github.com/users/hey-red/following{/other_user}","gists_url":"https://api.github.com/users/hey-red/gists{/gist_id}","starred_url":"https://api.github.com/users/hey-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hey-red/subscriptions","organizations_url":"https://api.github.com/users/hey-red/orgs","repos_url":"https://api.github.com/users/hey-red/repos","events_url":"https://api.github.com/users/hey-red/events{/privacy}","received_events_url":"https://api.github.com/users/hey-red/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-22T13:51:02Z","updated_at":"2018-09-22T16:37:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a9b7937df17f190ae35a36f991f4aeee0b69366","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504/commits","review_comments_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504/comments","review_comment_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues/504/comments","statuses_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/statuses/5e11b36c7dea0ba068151314122ccb1df834a9da","head":{"label":"hey-red:master","ref":"master","sha":"5e11b36c7dea0ba068151314122ccb1df834a9da","user":{"login":"hey-red","id":1738743,"node_id":"MDQ6VXNlcjE3Mzg3NDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1738743?v=4","gravatar_id":"","url":"https://api.github.com/users/hey-red","html_url":"https://github.com/hey-red","followers_url":"https://api.github.com/users/hey-red/followers","following_url":"https://api.github.com/users/hey-red/following{/other_user}","gists_url":"https://api.github.com/users/hey-red/gists{/gist_id}","starred_url":"https://api.github.com/users/hey-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hey-red/subscriptions","organizations_url":"https://api.github.com/users/hey-red/orgs","repos_url":"https://api.github.com/users/hey-red/repos","events_url":"https://api.github.com/users/hey-red/events{/privacy}","received_events_url":"https://api.github.com/users/hey-red/received_events","type":"User","site_admin":false},"repo":{"id":149879506,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk4Nzk1MDY=","name":"tachiyomi-extensions","full_name":"hey-red/tachiyomi-extensions","private":false,"owner":{"login":"hey-red","id":1738743,"node_id":"MDQ6VXNlcjE3Mzg3NDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1738743?v=4","gravatar_id":"","url":"https://api.github.com/users/hey-red","html_url":"https://github.com/hey-red","followers_url":"https://api.github.com/users/hey-red/followers","following_url":"https://api.github.com/users/hey-red/following{/other_user}","gists_url":"https://api.github.com/users/hey-red/gists{/gist_id}","starred_url":"https://api.github.com/users/hey-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hey-red/subscriptions","organizations_url":"https://api.github.com/users/hey-red/orgs","repos_url":"https://api.github.com/users/hey-red/repos","events_url":"https://api.github.com/users/hey-red/events{/privacy}","received_events_url":"https://api.github.com/users/hey-red/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hey-red/tachiyomi-extensions","description":null,"fork":true,"url":"https://api.github.com/repos/hey-red/tachiyomi-extensions","forks_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/forks","keys_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/teams","hooks_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/hooks","issue_events_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/events","assignees_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/tags","blobs_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/languages","stargazers_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/stargazers","contributors_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/contributors","subscribers_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/subscribers","subscription_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/subscription","commits_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/merges","archive_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/downloads","issues_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/labels{/name}","releases_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/hey-red/tachiyomi-extensions/deployments","created_at":"2018-09-22T13:29:51Z","updated_at":"2018-09-22T13:49:48Z","pushed_at":"2018-09-22T13:49:47Z","git_url":"git://github.com/hey-red/tachiyomi-extensions.git","ssh_url":"git@github.com:hey-red/tachiyomi-extensions.git","clone_url":"https://github.com/hey-red/tachiyomi-extensions.git","svn_url":"https://github.com/hey-red/tachiyomi-extensions","homepage":null,"size":13925,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inorichi:master","ref":"master","sha":"320e2c59d450fd8e8b1f8f2f04b100ceb7c35551","user":{"login":"inorichi","id":3521738,"node_id":"MDQ6VXNlcjM1MjE3Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/3521738?v=4","gravatar_id":"","url":"https://api.github.com/users/inorichi","html_url":"https://github.com/inorichi","followers_url":"https://api.github.com/users/inorichi/followers","following_url":"https://api.github.com/users/inorichi/following{/other_user}","gists_url":"https://api.github.com/users/inorichi/gists{/gist_id}","starred_url":"https://api.github.com/users/inorichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inorichi/subscriptions","organizations_url":"https://api.github.com/users/inorichi/orgs","repos_url":"https://api.github.com/users/inorichi/repos","events_url":"https://api.github.com/users/inorichi/events{/privacy}","received_events_url":"https://api.github.com/users/inorichi/received_events","type":"User","site_admin":false},"repo":{"id":79658844,"node_id":"MDEwOlJlcG9zaXRvcnk3OTY1ODg0NA==","name":"tachiyomi-extensions","full_name":"inorichi/tachiyomi-extensions","private":false,"owner":{"login":"inorichi","id":3521738,"node_id":"MDQ6VXNlcjM1MjE3Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/3521738?v=4","gravatar_id":"","url":"https://api.github.com/users/inorichi","html_url":"https://github.com/inorichi","followers_url":"https://api.github.com/users/inorichi/followers","following_url":"https://api.github.com/users/inorichi/following{/other_user}","gists_url":"https://api.github.com/users/inorichi/gists{/gist_id}","starred_url":"https://api.github.com/users/inorichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inorichi/subscriptions","organizations_url":"https://api.github.com/users/inorichi/orgs","repos_url":"https://api.github.com/users/inorichi/repos","events_url":"https://api.github.com/users/inorichi/events{/privacy}","received_events_url":"https://api.github.com/users/inorichi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/inorichi/tachiyomi-extensions","description":null,"fork":false,"url":"https://api.github.com/repos/inorichi/tachiyomi-extensions","forks_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/forks","keys_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/teams","hooks_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/hooks","issue_events_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/events","assignees_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/tags","blobs_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/languages","stargazers_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/stargazers","contributors_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/contributors","subscribers_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/subscribers","subscription_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/subscription","commits_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/merges","archive_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/downloads","issues_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/labels{/name}","releases_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/inorichi/tachiyomi-extensions/deployments","created_at":"2017-01-21T16:51:47Z","updated_at":"2018-09-22T12:57:27Z","pushed_at":"2018-09-22T16:18:16Z","git_url":"git://github.com/inorichi/tachiyomi-extensions.git","ssh_url":"git@github.com:inorichi/tachiyomi-extensions.git","clone_url":"https://github.com/inorichi/tachiyomi-extensions.git","svn_url":"https://github.com/inorichi/tachiyomi-extensions","homepage":null,"size":13921,"stargazers_count":153,"watchers_count":153,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"archived":false,"open_issues_count":88,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":69,"open_issues":88,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504"},"html":{"href":"https://github.com/inorichi/tachiyomi-extensions/pull/504"},"issue":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues/504"},"comments":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/inorichi/tachiyomi-extensions/statuses/5e11b36c7dea0ba068151314122ccb1df834a9da"}},"author_association":"NONE"}}
{"actor":{"display_login":"Pavkazzz"}}