Skip to content

Commit

Permalink
restored hosted version
Browse files Browse the repository at this point in the history
  • Loading branch information
guancio committed Nov 10, 2013
1 parent ec10862 commit 72a303e
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 10 deletions.
1 change: 0 additions & 1 deletion hostedapp/manifest.json

This file was deleted.

18 changes: 18 additions & 0 deletions hostedapp/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Subtitle Videoplayer Hosted",
"version": "1.6.0",
"manifest_version": 2,
"icons": {
"16": "camera.png",
"128": "camera.png"
},
"app": {
"urls": [
"https://subtitlevideoplayer.appspot.com/static/ChromeOsSubtitle/src/"
],
"launch": {
"web_url": "https://subtitlevideoplayer.appspot.com/static/ChromeOsSubtitle/src/index.html"
}
},
"offline_enabled": true
}
6 changes: 3 additions & 3 deletions hostedapp/manifest_dell.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "Subtitle Videoplayer Hosted",
"version": "1.4.0",
"version": "1.6.0",
"manifest_version": 2,
"icons": {
"16": "camera.png",
"128": "camera.png"
},
"app": {
"urls": [
"http://localhost"
"http://localhost:8080/static/ChromeOsSubtitle/src/"
],
"launch": {
"web_url": "http://localhost:8000/content/index.html"
"web_url": "http://localhost:8080/static/ChromeOsSubtitle/src/index.html"
}
},
"offline_enabled": true
Expand Down
2 changes: 1 addition & 1 deletion hostedapp/manifest_git.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Subtitle Videoplayer Hosted",
"version": "1.5.0",
"version": "1.6.0",
"manifest_version": 2,
"icons": {
"16": "camera.png",
Expand Down
2 changes: 1 addition & 1 deletion src/appcache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
# version 1.6.0.z.1
# version 1.6.0.z.4
background.png
index.html
mediaelementplayer.min.css
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<html manifest="appcache" style="overflow: hidden;">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Subtitle Videoplayer</title>
Expand Down
2 changes: 1 addition & 1 deletion src/js/mep-feature-tracks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

zip.workerScriptsPath = mediaelement_url + "/lib/zip.js/WebContent/";
zip.workerScriptsPath = mediaelement_url + "lib/zip.js/WebContent/";

(function($) {

Expand Down
10 changes: 7 additions & 3 deletions src/js/opensubtitle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
var packaged_app = (window.location.origin.indexOf("chrome-extension") == 0);
var host = "http://api.opensubtitles.org/xml-rpc";
if (!packaged_app) {
if (window.location.origin.indexOf("localhost") == 0)
host = "http://localhost:8080/xml-rpc";
else
host = window.location.origin + "/xml-rpc";
}

function b64toBlob(b64Data, contentType, sliceSize) {
contentType = contentType || '';
Expand Down Expand Up @@ -80,9 +87,6 @@ var openSubsLang = [
var
t = this;

var host = "http://api.opensubtitles.org/xml-rpc";
if (!packaged_app)
host = "http://localhost:8080/xml-rpc";
var service = new rpc.ServiceProxy(host, {
sanitize: false,
protocol: "XML-RPC",
Expand Down

0 comments on commit 72a303e

Please sign in to comment.