Skip to content

Commit

Permalink
Release version 0.0.3
Browse files Browse the repository at this point in the history
- Minor bugfix release: #2
  • Loading branch information
Sorin Burjan committed May 22, 2016
1 parent 71309c4 commit 9938a2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ pageMod.PageMod({
content: prepareRequestBody(),
onComplete: function(response) {
if (response.status === 204) {
console.log('[addYoutubeSource] - Request body', prepareRequestBody())
console.log('[addYoutubeSource] - Promise fulfilled. Async code terminated')
resolve()
} else {
console.log('[addYoutubeSource] - Request body', prepareRequestBody())
console.log('[addYoutubeSource] - Promise rejected. Async code terminated. Serviio DLNA did not accept the feed. This should not happen. Response status: ' + response.status)
reject('Error: Serviio DLNA did not accept the feed. This should not happen. Validation error, status code: ' + response.status)
}
Expand All @@ -144,15 +146,15 @@ pageMod.PageMod({
function prepareRequestBody() {
var mediaSourceName = (feedData.playlistName.length > 0) ? mediaSourceName = feedData.channelName + ' - ' + feedData.playlistName : mediaSourceName = feedData.channelName
return `<onlineRepositoriesBackup>
<items>
<backupItem enabled="true">
<serviioLink>serviio:\/\/video:web?url=${feedData.feedURL}&amp;name=${mediaSourceName}</serviioLink>
<accessGroupIds>
<id>1</id>
</accessGroupIds>
</backupItem>
</items>
</onlineRepositoriesBackup>`
<items>
<backupItem enabled="true">
<serviioLink>serviio:\/\/video:web?url=`+encodeURIComponent(feedData.feedURL)+`&amp;name=`+encodeURIComponent(mediaSourceName)+`</serviioLink>
<accessGroupIds>
<id>1</id>
</accessGroupIds>
</backupItem>
</items>
</onlineRepositoriesBackup>`
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Serviio TubeFox",
"name": "serviio-tubefox",
"icon": "resource://serviio-tubefox/data/img/icon-serviio.png",
"version": "0.0.2",
"version": "0.0.3",
"description": "Send Youtube feeds to Serviio DLNA directly from Firefox !\n\nServiio is a free media server. It allows you to stream your media files (music, video or images) to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected home network.\n\nRequirements\n-Serviio DLNA Server version 1.6 or above (http://www.serviio.org)\n-Serviio Youtube Plugin version 4 or above (http://forum.serviio.org/viewtopic.php?f=20&t=3276)\n\nHow to use\n-Install the extension\n-Navigate on your favourite Youtube channel\n-You will see the Serviio icon on the pages that contain videos\n\t-\"Videos\" tab of the channel\n\t-Specific playlist page. This is NOT the \"Playlist\" tab. See screenshots.\n-Click on the Serviio yellow icon. The icon should change its background color to green, indicating that the feed has been successfully added\n-If the background color of the Serviio button becomes red, hover over it to see the error message\n\nAdditional configuration\n-By default, the extension assumes that you have Serviio installed on the same computer you are using the extension from\n-If you want to send Youtube feeds to a remote Serviio server, go to the addon preferences and set Serviio URL to point to it. Make sure that the server is accessible from your current location.\n\nPossible problems\n-Error: Invalid Serviio URL\n-Solution: Go to the extension preferences and make sure that the Serviio URL is valid (i.e http://localhost:23423)\n\n-Error: Serviio is not running or the URL is incorrect\n-Solution: Make sure that Serviio service/process is running and accessible\n\n-Error: Youtube plugin not found\n-Solution: Make sure you have the Youtube plugin installed. Version 4 or above is required. See more on http://forum.serviio.org/viewtopic.php?f=20&t=3276\n\n-Error: Serviio DLNA did not accept the feed.\n-Solution: It means that Serviio did reject the feed URL. This should not happen. If it does, please open a ticket on the addon's Github page including also the Youtube video/playlist causing the issue.\n\n-Some of the videos/playlists I have added do not show up on my TV.\n-Solution: Some videos are copyright protected and they use an encrypted signature. The Serviio Youtube plugin is unable to index those videos. For more details, check serviio.log\n\nFor bugs or problems, please report them on: https://github.com/sorinello/serviio-tubefox/issues\n\nNOTE: This is a 3rd party addon and is not affiliated with the creators of Serviio DLNA.",
"homepage": "https://github.com/sorinello/serviio-tubefox",
"main": "index.js",
Expand Down

0 comments on commit 9938a2c

Please sign in to comment.