Skip to content

Commit

Permalink
SenMangaRAW use default useragent
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed May 14, 2015
1 parent edfc22e commit 9bbbed8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion baseunits/includes/SenMangaRAW/chapter_page_number.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
l := TStringList.Create;
parse := TStringList.Create;
try
FHTTP.UserAgent := RandomString(10, True) + RandomString(25 + Random(65), True, False, True);
if GetPage(TObject(l),
DecodeUrl(FillMangaSiteHost(SENMANGARAW_ID, URL + '/1')),
manager.container.manager.retryConnect) then
Expand Down
1 change: 0 additions & 1 deletion baseunits/includes/SenMangaRAW/image_url.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
l := TStringList.Create;
parse := TStringList.Create;
try
FHTTP.UserAgent := RandomString(10, True) + RandomString(25 + Random(65), True, False, True);
s := manager.container.ChapterLinks[manager.container.CurrentDownloadChapterPtr] +
'/' + IntToStr(QWord(workCounter) + 1);
s := FillMangaSiteHost(SENMANGARAW_ID, s);
Expand Down
2 changes: 0 additions & 2 deletions baseunits/includes/SenMangaRAW/manga_information.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var
begin
mangaInfo.website := WebsiteRoots[SENMANGARAW_ID, 0];
mangaInfo.url := FillMangaSiteHost(SENMANGARAW_ID, URL);
FHTTP.UserAgent := RandomString(10, True) + RandomString(25 + Random(65), True, False, True);
if GetPage(TObject(Source), mangaInfo.url, Reconnect) then
begin
Parser := THTMLParser.Create(Source.Text);
Expand Down Expand Up @@ -41,7 +40,6 @@ begin
mangaInfo.coverLink := '/' + mangaInfo.coverLink;
mangaInfo.coverLink := WebsiteRoots[SENMANGARAW_ID, 1] + mangaInfo.coverLink;
end;
FHTTP.UserAgent := RandomString(10, True) + RandomString(25 + Random(65), True, False, True);
end;

if (GetTagName(parse[i]) = 'strong') and (GetVal(parse[i], 'class') = 'data') then
Expand Down
3 changes: 1 addition & 2 deletions baseunits/includes/SenMangaRAW/names_and_links.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
i: Integer;
isExtractNames: Boolean = False;
begin
Result := INFORMATION_NOT_FOUND;
FHTTP.UserAgent := RandomString(10, True) + RandomString(25 + Random(65), True, False, True);
Result := INFORMATION_NOT_FOUND;
if not GetPage(TObject(Source), WebsiteRoots[SENMANGARAW_ID, 1] +
'/Manga/?order=text-version', 3) then
begin
Expand Down

0 comments on commit 9bbbed8

Please sign in to comment.