Skip to content

Commit

Permalink
remove regex for current show
Browse files Browse the repository at this point in the history
  • Loading branch information
rorpage committed May 31, 2019
1 parent 9872fd7 commit bc11f44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/tasks/NTunesTask.brs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ function executeTask() as void
urlTransfer = createUrlTransfer("https://fastpass.wdwnt.com/radio")
json = getJson(urlTransfer)

apostropheRegex = CreateObject("roRegex", "'", "")

ntunes_info = CreateObject("roAssociativeArray")
current_info = CreateObject("roSGNode", "NTunesNode")

current_info.current_track_title = json.current.metadata.track_title
current_info.current_track_artist_name = json.current.metadata.artist_name
current_info.current_show_name = apostropheRegex.ReplaceAll(json.currentShow[0].name, "'")
current_info.current_show_name = json.currentShow[0].name
current_info.current_show_image_path = json.currentShow[0].image_path
current_info.next_track_title = json["next"].metadata.track_title
current_info.next_track_artist_name = json["next"].metadata.artist_name
Expand Down

0 comments on commit bc11f44

Please sign in to comment.