Skip to content

Commit 01230de

Browse files
committed
v1.3.2 YouTube views fix again
1 parent 8618d6d commit 01230de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cinch-url-scraper.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'cinch-url-scraper'
3-
s.version = '1.3.1'
3+
s.version = '1.3.2'
44
s.summary =
55
s.description = 'A Cinch plugin to get information about posted URLs.'
66
s.licenses = ['LGPLv3']

lib/cinch/plugins/urlscraper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def listen(m)
7171
page = @agent.get(link + "&nofeather=True")
7272

7373
# Get page hits
74-
hits = page.search("//span[@class='watch-view-count yt-uix-hovercard-target']")
74+
hits = page.search("//div[@id='watch7-views-info']//div[@class='watch-view-count']")
7575
hits = hits.text.gsub(/[.,]/, ",")
7676

7777
# Get likes

0 commit comments

Comments
 (0)