Skip to content

Instantly share code, notes, and snippets.

View azhurb's full-sized avatar

Oleksii Zhurbytskyi azhurb

View GitHub Profile
@azhurb
azhurb / lst.js
Created November 2, 2012 08:43
Megogo + proxy
////////////
lst = function () {
this.pos = 0;
this.prevPos = 0;
}
lst.prototype.length = 0;
lst.prototype.page = 0;
lst.prototype.prevLst = 0;
@azhurb
azhurb / main.js
Created November 2, 2012 08:44
Megogo + proxy
stb_emul_mode = 1;
function init() {
back_location = back_location.replace(/\?referrer\=/, '');
if (stb_emul_mode) {
}
window.moveTo(0, 0);
@azhurb
azhurb / vars.js
Created November 2, 2012 08:44
Megogo + proxy
var _GET = {};
(function(){
var get = new String(window.location);
var x = get.indexOf('?');
if (x!=-1){
var l = get.length;
get = get.substr(x+1, l-x);
l = get.split('&');
x = 0;
@azhurb
azhurb / 1065.patch
Created November 14, 2012 09:32
Fix issue #1065
Index: D:/projects/stalker_portal/stalker_portal/c/player.js
===================================================================
--- D:/projects/stalker_portal/stalker_portal/c/player.js (revision 3205)
+++ D:/projects/stalker_portal/stalker_portal/c/player.js (revision 3206)
@@ -1357,7 +1357,7 @@
if (this.is_tv && parseInt(this.cur_media_item.enable_tv_archive, 10) && module.time_shift && !this.prev_layer.on){
module.time_shift.set_media_item(this.cur_tv_item);
module.time_shift.get_link_for_channel();
- this.is_tv = false;
+ //this.is_tv = false;
Index: server/lib/stb.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/stb.class.php (revision 3348)
+++ server/lib/stb.class.php (revision )
@@ -300,6 +300,7 @@
$profile['web_proxy_exclude_list'] = Config::exist('stb_http_proxy_exclude_list') ? Config::get('stb_http_proxy_exclude_list') : '';
$profile['update_url'] = self::getImageUpdateUrl(empty($_REQUEST['stb_type']) ? 'mag250' : $_REQUEST['stb_type']);
Index: D:/projects/stalker_portal/stalker_portal/server/lib/mysql.class.php
===================================================================
--- D:/projects/stalker_portal/stalker_portal/server/lib/mysql.class.php (revision 3255)
+++ D:/projects/stalker_portal/stalker_portal/server/lib/mysql.class.php (revision 3256)
@@ -445,8 +445,7 @@
}
public function insert($table, $keys){
-
-
@azhurb
azhurb / issue_1299_fix.patch
Created November 21, 2012 08:54
Fix time shift bug (issue #1299)
Index: D:/projects/stalker_portal/stalker_portal/c/player.js
===================================================================
--- D:/projects/stalker_portal/stalker_portal/c/player.js (revision 3357)
+++ D:/projects/stalker_portal/stalker_portal/c/player.js (revision 3358)
@@ -1538,7 +1538,10 @@
};
player.prototype.disable_pause = function(){
+ _debug('player.disable_pause');
@azhurb
azhurb / Fix_epg_import_bug_(issue_#1371).patch
Created November 29, 2012 15:46
Fix epg import bug (issue #1371)
Index: server/lib/mysql.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/mysql.class.php (revision 3355)
+++ server/lib/mysql.class.php (revision )
@@ -240,6 +240,10 @@
return $this;
}
@azhurb
azhurb / epg.class.php
Created November 30, 2012 14:44
Fix epg import bug (issue #1371)
<?php
/**
* Epg from XMLTV
*
* @package stalker_portal
* @author [email protected]
*/
class Epg
{
@azhurb
azhurb / Fix_youtube_(issue_#1432).patch
Last active December 10, 2015 00:29
Fix youtube (issue #1432)
Index: external/youtube/js/base-funcs.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- external/youtube/js/base-funcs.js (revision 3411)
+++ external/youtube/js/base-funcs.js (revision )
@@ -247,7 +247,7 @@
{
if (request.readyState == 4 && request.status == 200) {