Skip to content

Commit

Permalink
V : 0.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu committed Aug 28, 2018
1 parent 94f7380 commit f61bf9c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 119 deletions.
5 changes: 3 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Changelog :

0.14.1 : stability : fixed a rediretion issue with mangareader and pandamanga<br />
0.14.0 : stability : corrected the scraper in order to allow it to continue to use mangafox ho changed name ( mangafox.la to fanfox.net ) +implemented a parameter ( loop_on_todo_qt ) to allow configuration of the loop_on_todo option<br />
0.14.2 : stability fix : corrected the fanfox licenced manga issue that caused redirections but did not prevent the index to get parsed witch resulted in long and painfull delays on those mangas + corrected a display erro<br />
0.14.1 : stability fix : fixed a rediretion issue with mangareader and pandamanga<br />
0.14.0 : stability fix : corrected the scraper in order to allow it to continue to use mangafox ho changed name ( mangafox.la to fanfox.net ) +implemented a parameter ( loop_on_todo_qt ) to allow configuration of the loop_on_todo option<br />

###### Warning : the params database is not compatible<br />Please look at the file migration/0.12.x_to_0.13.x.txt<br />

Expand Down
2 changes: 1 addition & 1 deletion sources/DB/manga_data/Manga_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def extract_data(display)
if @data[:website] == nil
return false
end
@data[:link] = @data[:website][:link] + @data[:website][:to_complete] + @data[:name] + '/'
@data[:link] = @data[:website][:link] + @data[:website][:to_complete] + @data[:name] + ((@data[:website][:index_link_ends_with_slash]) ? '/' : '')
elsif @data[:link] != nil # got manga_data with link
unless Web_data.instance.get_web_info_from_link(@data, display)
return false
Expand Down
3 changes: 3 additions & 0 deletions sources/Download/fanfox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ class Download_Mangafox
private
def extract_links(manga)
links = @manga_data[:index_page].xpath('//a[@class="tips"]').map{ |link| link['href'] }
if @manga_data[:index_page].xpath('//div[@class="warning"]').text.include?('it is not available in Manga Fox')
raise ('cannot download manga '.red + manga[:name].yellow + ' is licensed and cannot be downloaded'.red)
end
if links == nil || links.size == 0
raise ('failed to get manga '.red + manga[:name].yellow + ' chapter index'.red)
end
Expand Down
2 changes: 1 addition & 1 deletion sources/templates/text/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.1
0.14.2
3 changes: 0 additions & 3 deletions sources/utils/utils_co.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ def self.download_rescue(tries, link, error, http_code, silent, type)
end

def self.download(link, silent, type)

puts link

tries ||= $download_params[:nb_tries_on_fail]
while tries != 0
sleep($download_params[:between_sleep])
Expand Down
112 changes: 0 additions & 112 deletions test.txt

This file was deleted.

0 comments on commit f61bf9c

Please sign in to comment.