﻿// General (must match web.config channel settings)

var TVConfig =
{
    Catalog             : 'Canale10',

    // OVH
    StoreServerList   : ["188.165.206.81", null,null],
    // Armor - Vista
    //StoreServerList   : ["localhost:8080", null,null],
    // Armor - Seven
    //StoreServerList     : ["localhost:8070", null,null],

    // this must be changed manually
    activeStoreServerID : 1,

    videosPath          : '/Canale10/videos@ID/',
    thumbsPath          : '/Canale10/thumbs@ID/',
    imagesPath          : '/Canale10/images@ID/',

    SpotCatID           : 21,           // Spot videos category
    HDCatID             : 20,           // HD videos category
    NoSpotCatIDs        : [12, 20, 122, 123],     // Spots are not played for videos in this category

    // Convenience methods for some properties

    getActiveStoreServerID: function() {
        return TVConfig.activeStoreServerID;
    },

    getActiveStoreFolderID: function() {
        var month = new Date().getMonth();    // from 0 to 11
        return month + 1;
    },

    getStoreServerAddressByID : function(serverID) {
        return TVConfig.StoreServerList[serverID - 1];
    },

    getVideosPathByID : function(folderID) {
        return TVConfig.videosPath.replace('@ID', folderID);
    },

    getImagesPathByID : function(folderID) {
        return TVConfig.imagesPath.replace('@ID', folderID);
    },

    getThumbsPathByID: function(folderID) {
        return TVConfig.thumbsPath.replace('@ID', folderID);
    }
}

