• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Sky Movies 9 Diff

Joined
Oct 3, 2005
Messages
736
Likes
13
#1
thanks to the help of the Cydine

SM9_ETV is now possible to be changed to Sky Movies 9

Code:
diff -ur tuxbox-virgin/apps/dvb/zapit/src/zapsi/descriptors.cpp tuxbox-cvs/apps/dvb/zapit/src/zapsi/descriptors.cpp
--- tuxbox-virgin/apps/dvb/zapit/src/zapsi/descriptors.cpp    2007-03-23 19:49:29.000000000 +0000
+++ tuxbox-cvs/apps/dvb/zapit/src/zapsi/descriptors.cpp    2007-03-24 19:46:42.000000000 +0000
@@ -447,12 +447,30 @@
         else
             serviceName  = CDVBString((const char*)&(buffer[4 + service_provider_name_length + 1]), (2 + buffer[1]) - (4 + service_provider_name_length + 1)).getContent();
     }
+
     else
     {
         providerName = CDVBString((const char*)&(buffer[4]), service_provider_name_length).getContent();
         serviceName  = CDVBString((const char*)&(buffer[4 + service_provider_name_length + 1]), (2 + buffer[1]) - (4 + service_provider_name_length + 1)).getContent();
     }
+//new code
+    if (in_blacklist)
+    {
+        if (((unsigned char)buffer[4 + service_provider_name_length + 1]) >= 0x20) // no encoding info
+            serviceName  = CDVBString(("\x05" + std::string((const char*)&(buffer[4 + service_provider_name_length + 1]), (2 + buffer[1]) - (4 + service_provider_name_length + 1))).c_str(), (2 + buffer[1]) - (4 + service_provider_name_length + 1) + 1).getContent(); // add artificial encoding info
+        else
+            serviceName  = CDVBString((const char*)&(buffer[4 + service_provider_name_length + 1]), (2 + buffer[1]) - (4 + service_provider_name_length + 1)).getContent();
+    }
 
+    else
+    {
+        providerName = CDVBString((const char*)&(buffer[4]), service_provider_name_length).getContent();
+    if (servicename == "smv_9")
+        servicename = "Sky Movies 9";
+    else
+        serviceName  = CDVBString((const char*)&(buffer[4 + service_provider_name_length + 1]), (2 + buffer[1]) - (4 + service_provider_name_length + 1)).getContent();
+    }
+//end new code
     found_channels++;
 
     eventServer->sendEvent
@@ -586,8 +604,104 @@
 }
 
 /* 0x4C */
-void time_shifted_service_descriptor(const unsigned char * const)
+void time_shifted_service_descriptor(const t_service_id service_id, const t_transport_stream_id transport_stream_id, const t_original_network_id original_network_id, const t_satellite_position satellite_position, const uint32_t frequency)
 {
+        frequency_kHz_t zfrequency;
+    tallchans_iterator I = allchans.find(CREATE_CHANNEL_ID);
+
+    if (I != allchans.end())
+        return;
+
+    uint8_t service_type = ST_DIGITAL_TELEVISION_SERVICE;
+    std::string serviceName;
+    std::string providerName = "NVOD";
+
+    if (service_id == 0x062d || service_id == 0x02be || service_id ==0x1cec)
+        serviceName = std::string("Red Hot Wives");
+    else if (service_id == 0x02c2)
+        serviceName = std::string("Red Hot UK Talent");
+    else if (service_id == 0x062f || service_id == 0x02c3 || service_id ==0x1cee)
+        serviceName = std::string("Red Hot All Girl");
+    else if (service_id == 0x02bd || service_id ==0x1ceb)
+        serviceName = std::string("Red Hot 40+ Wives");
+    else if (service_id == 0x062e)
+        serviceName = std::string("Red Hot Amateur");
+    else if (service_id == 0x062c || service_id == 0x02b3 || service_id ==0x1cf0)
+        serviceName = std::string("Spice Extreme");
+    else if (service_id == 0x02a5 || service_id ==0x0191)
+        serviceName = std::string("Hustler TV UK");
+    else if (service_id == 0x0624 || service_id == 0x02ca || service_id ==0x1d4d)
+        serviceName = std::string("100% Babes");
+    else if (service_id == 0x0623 || service_id == 0x02de || service_id ==0x1d53)
+        serviceName = std::string("Adult Channel PPV");
+    else if (service_id == 0x0629 || service_id == 0x0118 || service_id ==0x019a)
+        serviceName = std::string("Playboy TV PPV");
+    else if (service_id == 0x062a || service_id == 0x012d || service_id ==0x0326)
+        serviceName = std::string("Television X PPV");
+    else if (service_id == 0x1ced)
+        serviceName = std::string("Gay TV");
+    else if (service_id == 0x1f47)
+        serviceName = std::string("Xplicit XXX");
+    else if (service_id == 0x1f43)
+        serviceName = std::string("Red Hot Climax");
+    else if (service_id == 0x0625)
+        serviceName = std::string("Setanta Sports PPV");
+    else if (service_id == 0x06a4)
+        serviceName = std::string("Sky Box Office Sports");
+    else if (service_id == 0x007c)
+        serviceName = std::string("SBO PPV2");
+    else if (service_id == 0x022a)
+        serviceName = std::string("PremPlus PPV");
+    else if (service_id == 0x00ce || service_id == 0x0275)
+        serviceName = std::string("PPV Events");
+    else if (service_id == 0x0130)
+        serviceName = std::string("PPV Events 2");
+    else
+        serviceName = std::string("Other NVOD");
+
+    found_channels++;
+
+    eventServer->sendEvent
+    (
+        CZapitClient::EVT_SCAN_NUM_CHANNELS,
+        CEventServer::INITID_ZAPIT,
+        &found_channels,
+        sizeof(found_channels)
+    );
+
+    zfrequency = FREQUENCY_IN_KHZ(frequency);
+    allchans.insert
+    (
+        std::pair <t_channel_id, CZapitChannel>
+        (
+            CREATE_CHANNEL_ID,
+            CZapitChannel
+            (
+                serviceName,
+                service_id,
+                transport_stream_id,
+                original_network_id,
+                service_type,
+                0,
+                satellite_position,
+                zfrequency 
+            )
+        )
+    );
+
+#define UNKNOWN_PROVIDER_NAME "Unknown Provider"
+
+    if (providerName.empty())
+        providerName = CDVBString(UNKNOWN_PROVIDER_NAME, strlen(UNKNOWN_PROVIDER_NAME)).getContent();
+
+    if (lastProviderName != providerName)
+    {
+        lastProviderName = providerName;
+        eventServer->sendEvent(CZapitClient::EVT_SCAN_PROVIDER, CEventServer::INITID_ZAPIT, (void *) lastProviderName.c_str(), lastProviderName.length() + 1);
+    }
+
+     found_tv_chans++;
+     eventServer->sendEvent(CZapitClient::EVT_SCAN_FOUND_TV_CHAN, CEventServer::INITID_ZAPIT, &found_tv_chans, sizeof(found_tv_chans));
 }
 
 /* 0x4D */
and heres a zapit precompiled
 

Devilfish

DW Regular
Joined
Oct 22, 2005
Messages
14,269
Likes
194
#4
Thanks renwich!

Will this work for TW aswell as it's called SkyMv9 and SkyMv10 instead of SM9_ETV?
 

gav12345

VIP Member
VIP Member
Joined
Mar 11, 2005
Messages
5,308
Likes
41
#5
looking good so far only thing i have found is there is no audio selection its gone from the info bar on all channels now



cheers
 
Joined
Oct 3, 2005
Messages
736
Likes
13
#6
yea I'm concentrating on getting cydines code to compile first then we can put the other bits back in after
 

davidh

<font color="RED">Administrator</font>
VIP Member
Joined
Aug 9, 2001
Messages
14,954
Likes
119
#8
what this is down to is when on the legit boxes u go onto skymovies 9 or 10

u have to do the red button/pin this then changes u to a different channel
which is what u r doing

i get 2 sky movies 9 and 10 on the dbox 1 u get the epg with but no picture/sound the other with oic and sound but no epg so u wont be able to get epg with them channels
 

gav12345

VIP Member
VIP Member
Joined
Mar 11, 2005
Messages
5,308
Likes
41
#10
Hi Renwich,

does this just rename the channel for the time being ?

de_deej
hi de long time no speak m8 how you been?


yes it renames the channel and intermission on the epg so far so good

but the audio selection when you get the narrator over the top of the programmes you cant switch it off as there is no options as of yet m8


cheers
 

davidh

<font color="RED">Administrator</font>
VIP Member
Joined
Aug 9, 2001
Messages
14,954
Likes
119
#11
hi de long time no speak m8 how you been?


yes it renames the channel and intermission on the epg so far so good

but the audio selection when you get the narrator over the top of the programmes you cant switch it off as there is no options as of yet m8


cheers
this again is a case of 2 channels
ones with out the audi narrator and the other with the narator
 
Joined
Oct 3, 2005
Messages
840
Likes
3
#12
hi de long time no speak m8 how you been?


yes it renames the channel and intermission on the epg so far so good

but the audio selection when you get the narrator over the top of the programmes you cant switch it off as there is no options as of yet m8


cheers
Yeah, I'm fine not been doing much wiht the old box lately as I just don't have the time. How's things with you ?

This sounds very interesting especially now there are rumours suggesting all the movie channels will be pin protected. Will have to give it a go as soon as I get a chance.

Keep up the good work guys.

de_deej