Skip to content

Commit

Permalink
Merge pull request #330 from xbmc/develop
Browse files Browse the repository at this point in the history
Merge Develop to Master
  • Loading branch information
jez500 authored Jul 28, 2018
2 parents e1cb8d2 + 079ae9b commit f9f3769
Show file tree
Hide file tree
Showing 41 changed files with 25,672 additions and 1,907 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ npm-debug.log
/tutorial
atlassian-ide-plugin.xml
dist/js/build/*
*.mo
*.mo
.vscode
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ module.exports = function (grunt) {
watchTask: true,
injectChanges: true,
hostname: "192.168.0.5",
proxy: "192.168.0.92:8080",
proxy: "192.168.0.10:8080",
open: false,
ports: {
min: 3102,
Expand Down
Binary file modified dist/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/icon-144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/icon-152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/amp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/cans.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/concert.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/guitar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/speaker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/turntable.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/fanart_default/tweeter.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/splash_hi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/thumbnail_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/themes/base/fonts/opensans/opensans-light-webfont.eot
Binary file not shown.
22,848 changes: 21,028 additions & 1,820 deletions dist/themes/base/fonts/opensans/opensans-light-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/themes/base/fonts/opensans/opensans-light-webfont.ttf
Binary file not shown.
Binary file modified dist/themes/base/fonts/opensans/opensans-light-webfont.woff
Binary file not shown.
Binary file modified dist/themes/base/fonts/opensans/opensans-light-webfont.woff2
Binary file not shown.
Binary file modified dist/themes/base/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/themes/base/images/thumbnail_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions dist/videoPlayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@
$player = $('<iframe>', {
width: width,
height: height,
src: 'https://www.youtube.com/embed/' + yt + '?rel=0&amp;showinfo=0&amp;autoplay=1&iv_load_policy=3',
src: 'https://www.youtube.com/embed/' + yt + '?rel=0&amp;showinfo=0&amp;autoplay=1&amp;iv_load_policy=3',
frameborder: 0,
allowfullscreen: 'allowfullscreen'
allowfullscreen: 'allowfullscreen',
allow: 'autoplay; encrypted-media'
});
$(document).ready(function(){
$('#switch-player').empty();
Expand Down
4 changes: 4 additions & 0 deletions src/js/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
showDeviceName: false
refreshIgnoreNFO: true
largeBreakpoint: 910
apiKeyTMDB: ''
apiKeyTVDB: ''
apiKeyFanartTv: ''
apiKeyYouTube: ''
}

## The App Instance
Expand Down
8 changes: 4 additions & 4 deletions src/js/apps/input/input_app.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@

## Respond to key code
switch e.which
when 37 # left
when 37, 72 # left, h
@doInput "Left"
when 38 # up
when 38, 75 # up, k
@doInput "Up"
when 39 # right
when 39, 76 # right, l
@doInput "Right"
when 40 # down
when 40, 74 # down, j
@doInput "Down"
when 8 # backspace
@doInput "Back"
Expand Down
9 changes: 9 additions & 0 deletions src/js/apps/settings/show/local/local_controller.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
{id: 'refreshIgnoreNFO', title: tr("Refresh Ignore NFO"), type: 'checkbox', defaultValue: true, description: tr('Ignore local NFO files when manually refreshing media.')}
]
}
{
title: 'API Keys'
id: 'apikeys'
children:[
{id: 'apiKeyTMDB', title: tr("The Movie DB"), type: 'textfield', defaultValue: '', description: tr("Set your own TMDB API key.")}
{id: 'apiKeyFanartTv', title: tr("FanartTV"), type: 'textfield', defaultValue: '', description: tr("Set your own FanartTv API key.")}
{id: 'apiKeyYouTube', title: tr("YouTube"), type: 'textfield', defaultValue: '', description: tr("Set your own YouTube API key.")}
]
}
]

## Get settings from local storage
Expand Down
7 changes: 7 additions & 0 deletions src/js/apps/state/kodi/notifications.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@
@setPlaying('playState', 'playing')
App.execute "player:kodi:timer", 'start'
@refreshStateNow()

# playback started
when 'Player.OnResume'
@setPlaying('paused', false)
@setPlaying('playState', 'playing')
App.execute "player:kodi:timer", 'start'
@refreshStateNow()

# playback stopped
when 'Player.OnStop'
Expand Down
4 changes: 2 additions & 2 deletions src/js/entities/external/fanarttv.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
API =

# Using the Kodi API key
apiKey: 'ed4b784f97227358b31ca4dd966a04f1'
apiKey: 'ZWQ0Yjc4NGY5NzIyNzM1OGIzMWNhNGRkOTY2YTA0ZjE='

# V3 of API
baseURL: 'http://webservice.fanart.tv/v3/'
Expand All @@ -18,7 +18,7 @@
## Make a call to API
call: (path, params, callback) ->
defaultParams =
api_key: @apiKey
api_key: config.getAPIKey('apiKeyFanartTv', @apiKey)
params = _.extend defaultParams, params
url = @baseURL + path + helpers.url.buildParams(params)
req = $.getJSON url, (resp) ->
Expand Down
6 changes: 3 additions & 3 deletions src/js/entities/external/themoviedb.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

API =

# Using the Kodi API key
apiKey: 'f7f51775877e0bb6703520952b3c7840'
# API Key
apiKey: 'NzFiYTFmMDdlZDBmYzhmYjM2MWNmMDRhNThkNzUwNTE='

# V3 of API
baseURL: 'https://api.themoviedb.org/3/'
Expand All @@ -29,7 +29,7 @@
## Make a call to API
call: (path, params, callback) ->
defaultParams =
api_key: @apiKey
api_key: config.getAPIKey('apiKeyTMDB', @apiKey)
params = _.extend defaultParams, params
url = @baseURL + path + helpers.url.buildParams(params) + '&callback=?'
$.getJSON url, (resp) ->
Expand Down
4 changes: 2 additions & 2 deletions src/js/entities/external/youtube.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

API =

apiKey: 'AIzaSyBxvaR6mCnUWN8cv2TiPRmuEh0FykBTAH0'
apiKey: 'QUl6YVN5Qnh2YVI2bUNuVVdOOGN2MlRpUFJtdUVoMEZ5a0JUQUgw'
searchUrl: 'https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&videoDefinition=any&videoEmbeddable=true&order=relevance&safeSearch=none'
maxResults: 5

kodiUrl: 'plugin://plugin.video.youtube/?action=play_video&videoid='
ytURL: 'https://youtu.be/'

getSearchUrl: ->
@searchUrl + '&key=' + @apiKey
@searchUrl + '&key=' + config.getAPIKey('apiKeyYouTube', @apiKey)

parseItems: (response) ->
items = []
Expand Down
5 changes: 5 additions & 0 deletions src/js/helpers/config.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ config.setLocal = (id, data, callback) ->
config.setLocalApp = () ->
config.set 'static', id, data, callback

# A wrapper for getting an API Key.
config.getAPIKey = (id, defaultData = '') ->
key = config.getLocal id, ''
return if key is '' then atob(defaultData) else key

# Wrapper for getting a config value before app has started.
# Should always try and use config.get() before this.
config.preStartGet = (id, defaultData = '') ->
Expand Down
5 changes: 5 additions & 0 deletions src/js/helpers/streams.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ helpers.stream.videoSizeMap = [
}
{
min: 481
max: 576
label: '576'
}
{
min: 577
max: 720
label: '720p'
}
Expand Down
3 changes: 2 additions & 1 deletion src/js/helpers/translate.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ helpers.translate.getLanguages = ->
de: "German"
lt: "Lithuanian"
nl: "Dutch"
pl: "Polish",
pl: "Polish"
es: "Spanish"
zh_hans: "Chinese, Simplified"
cs: "Czech"
}

## Init language and translations.
Expand Down
Loading

0 comments on commit f9f3769

Please sign in to comment.