Skip to content

Commit

Permalink
Merge pull request #227 from thibaudgg/fix_specs
Browse files Browse the repository at this point in the history
Fix specs 🔧
  • Loading branch information
markets authored Oct 27, 2023
2 parents 5fb0edf + f417e2e commit 2a94d69
Show file tree
Hide file tree
Showing 164 changed files with 5,413 additions and 5,332 deletions.
6 changes: 5 additions & 1 deletion lib/video_info/providers/youtube_scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def author_thumbnail
end

def channel_id
itemprop_node_value("channelId")
# NOTE the previous implementation, based on itemprop_node_value("channelId"),
# does not work well, probably due to some YouTube change
page_content = data.to_s
matches = page_content.match(/"channelId":"([a-zA-Z0-9_-]+)"/)
matches[1] if matches
end

def author_url
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2a94d69

Please sign in to comment.