File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 10121012
10131013 @data = JSON . parse ( data )
10141014 @user_name = @data [ "user_name" ] || CGI . unescape ( user )
1015- @ user_login = @data [ "user_login" ] || CGI . unescape ( user )
1016- @alternate_url = Addressable ::URI . parse ( "https://www.twitch.tv/#{ @ user_login. downcase } " ) . normalize . to_s
1015+ user_login = @data [ "user_login" ] || CGI . unescape ( user )
1016+ @alternate_url = Addressable ::URI . parse ( "https://www.twitch.tv/#{ user_login . downcase } " ) . normalize . to_s
10171017 @data [ "videos" ] . reject! { |v | v [ "is_live" ] }
10181018
10191019 @title = @user_name
Original file line number Diff line number Diff line change 1414 < title > <%= "* " if video [ "type" ] == "highlight" %> [<%= video [ "duration" ] . to_duration if video . has_key? ( "duration" ) %> ] <%= video [ "title" ] . to_line . esc %> </ title >
1515 < link href ="https://www.twitch.tv/videos/ <%= video [ "id" ] %> " />
1616 < updated > <%= Time . parse ( video [ "created_at" ] ) %> </ updated >
17- < author > < name > <%= @user_login . esc %> </ name > </ author >
17+ < author > < name > <%= ( video [ "user_name" ] || @user_name ) . esc %> </ name > </ author >
1818 < content type ="html ">
1919<%= <<~EOF . esc
2020 <iframe width="620" height="378" src="#{ request . root_url } /twitch-embed.html#autoplay=false&video=#{ video [ "id" ] } " allowfullscreen referrerpolicy="no-referrer" style="border: 0;"></iframe>
You can’t perform that action at this time.
0 commit comments