Skip to content

Commit

Permalink
^q^
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtBestor committed Jul 11, 2018
1 parent 276a541 commit 34647ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hitomi downloader Issues
# Hitomi downloader Issues
[![GitHub release](https://img.shields.io/github/release/KurtBestor/Hitomi-Downloader-issues.svg)](https://github.com/KurtBestor/Hitomi-Downloader-issues/releases/latest)

<img src="imgs/main_large.ico"/>

**버그 제보 (Bug reports)**
- [Link](https://github.com/KurtBestor/Hitomi-Downloader-issues/issues)
- [Issues](https://github.com/KurtBestor/Hitomi-Downloader-issues/issues)
10 changes: 4 additions & 6 deletions gelbooru_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from bs4 import BeautifulSoup
import re
import os
from utils import Downloader, LazyUrl, urljoin, parse_range
from urlparse import urlparse, parse_qs
from utils import Downloader, LazyUrl, urljoin, parse_range, query_url
from fucking_encoding import clean_title
from translator import tr_
import urllib
Expand All @@ -17,8 +16,7 @@

def get_tags(url):
url = clean_url(url)
parsed_url = urlparse(url)
qs = parse_qs(parsed_url.query)
qs = query_url(url)
if 'page=favorites' in url:
id = qs.get('id', ['N/A'])[0]
id = u'fav_{}'.format(id)
Expand All @@ -35,10 +33,10 @@ class Downloader_gelbooru(Downloader):
def init(self):
self._id = None
self.type = 'gelbooru'
self.customWidget.anime = False
self.single = False
#self.user_agent = downloader.hdr['User-Agent']
self.url = self.url.replace('gelbooru_', '')
if 'gelbooru.com' in self.url:
if 'gelbooru.com' in self.url.lower():
self.url = self.url.replace('http://', 'https://')
else:
url = self.url
Expand Down

0 comments on commit 34647ac

Please sign in to comment.