Skip to content

Commit

Permalink
implemented dailymotion #author_url
Browse files Browse the repository at this point in the history
  • Loading branch information
vheuken committed Nov 8, 2016
1 parent 17c1638 commit a145113
Show file tree
Hide file tree
Showing 14 changed files with 1,991 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/video_info/providers/dailymotion.rb
Expand Up @@ -17,11 +17,14 @@ def provider
define_method(method) { nil }
end


def author
data['owner.screenname']
end

def author_url
data['owner.url']
end

def keywords
data['tags']
end
Expand Down Expand Up @@ -76,7 +79,8 @@ def _api_url
"https://#{_api_base}#{_api_path}?" \
'fields=id,title,description,duration,created_time,' \
'url,views_total,tags,thumbnail_url,thumbnail_720_url,' \
'thumbnail_240_url,thumbnail_60_url,owner.screenname'
'owner.url,owner.screenname,' \
'thumbnail_240_url,thumbnail_60_url'
end

def _default_iframe_attributes
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.

0 comments on commit a145113

Please sign in to comment.