Skip to content

Commit

Permalink
Correcting fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Flores committed Mar 10, 2011
1 parent e324409 commit 549d69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def is_google_videos?
def google_videos
uri = URI.parse(@base_uri + @request)

if uri.fragment
if uri.fragment && uri.fragment != ""
video_id = CGI::parse(uri.fragment)['docid'].first
else
video_id = CGI::parse(uri.query)['docid'].first
Expand Down

0 comments on commit 549d69e

Please sign in to comment.