Skip to content

Commit

Permalink
Fix mangareader adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jphager2 committed Sep 1, 2019
1 parent 9fcbae0 commit d5e8e50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.21.3

* Fix manga reader adapter for chapter manga name

# v0.21.2

* Do not validate name of containing directory for CBZ.all
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
mangdown (0.21.2)
mangdown (0.21.3)
addressable
mimemagic
nokogiri (~> 1.8)
Expand Down
4 changes: 2 additions & 2 deletions lib/mangdown/adapter/mangareader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class Chapter < Scrapework::Object
name.sub(/(\d+)$/) { Regexp.last_match[1].rjust(5, '0') }
end

map :number do |html|
map :number do |_html|
_mapped_name.slice(/(\d+)$/, 1)
end

map :manga do |html|
manga = html.at_css('#mangainfo h2.c2 a')
manga = html.at_css('#mangainfo h2.c4 a')

{
url: "#{ROOT}#{manga['href']}",
Expand Down
2 changes: 1 addition & 1 deletion lib/mangdown/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Mangdown
VERSION = '0.21.2'
VERSION = '0.21.3'
end

0 comments on commit d5e8e50

Please sign in to comment.