Use relative paths for default torrents

This keeps them working if a user opens the app from DMG, then installs it to a different path and opens it again
This commit is contained in:
DC
2016-03-26 16:15:24 -07:00
parent b85f0b9489
commit 0d5ff2d964

View File

@@ -64,8 +64,8 @@ module.exports = {
status: 'paused', status: 'paused',
infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e', infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e',
displayName: 'Big Buck Bunny', displayName: 'Big Buck Bunny',
posterURL: path.join(config.ROOT_PATH, 'static', 'bigBuckBunny.jpg'), posterURL: '../static/bigBuckBunny.jpg',
torrentPath: path.join(config.ROOT_PATH, 'static', 'bigBuckBunny.torrent'), torrentPath: '../static/bigBuckBunny.torrent',
files: [ files: [
{ {
'name': 'bbb_sunflower_1080p_30fps_normal.mp4', 'name': 'bbb_sunflower_1080p_30fps_normal.mp4',
@@ -79,8 +79,8 @@ module.exports = {
status: 'paused', status: 'paused',
infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d', infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
displayName: 'Sintel', displayName: 'Sintel',
posterURL: path.join(config.ROOT_PATH, 'static', 'sintel.jpg'), posterURL: '../static/sintel.jpg',
torrentPath: path.join(config.ROOT_PATH, 'static', 'sintel.torrent'), torrentPath: '../static/sintel.torrent',
files: [ files: [
{ {
'name': 'sintel.mp4', 'name': 'sintel.mp4',
@@ -94,8 +94,8 @@ module.exports = {
status: 'paused', status: 'paused',
infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed', infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed',
displayName: 'Tears of Steel', displayName: 'Tears of Steel',
posterURL: path.join(config.ROOT_PATH, 'static', 'tearsOfSteel.jpg'), posterURL: '../static/tearsOfSteel.jpg',
torrentPath: path.join(config.ROOT_PATH, 'static', 'tearsOfSteel.torrent'), torrentPath: '../static/tearsOfSteel.torrent',
files: [ files: [
{ {
'name': 'tears_of_steel_1080p.webm', 'name': 'tears_of_steel_1080p.webm',