ldg2002
Registered Member
- Jun 5, 2012
- 66
- 6
in what language you're trying to program? I'm trying to c #Working on it already![]()
in what language you're trying to program? I'm trying to c #Working on it already![]()
Java. Bot itself is not a problem, problem is that I can't find one parameter in HTML (plid).in what language you're trying to program? I'm trying to c #
exact. in a yt mobile page the value "PLID" is not assigned, while in a normal yt page value "PLID" is assignedJava. Bot itself is not a problem, problem is that I can't find one parameter in HTML (plid).
if we try to take it from the normal page and use it in the mobile request?Yes, PLID is not assigned anywhere on the mobile page because, it's generated on fly! Haven't figured out the encoding yet so if anyone knows, PM me![]()
if we try to take it from the normal page and use it in the mobile request?
Java. Bot itself is not a problem, problem is that I can't find one parameter in HTML (plid).
exact. in a yt mobile page the value "PLID" is not assigned, while in a normal yt page value "PLID" is assigned
Yes, PLID is not assigned anywhere on the mobile page because, it's generated on fly! Haven't figured out the encoding yet so if anyone knows, PM me![]()
Won't work, I already tried thatIf you want to use the mobile request, then the PLID must fit the request! If anyone figured out how the PLID is encoded, let me know
![]()
Yeah i was confused about this also. There is no way to scrape it from the mobile watch page. I have figured out how both RDM and PLID are generated though. For plid, it's made up of two parts. The first part is the current date/time in milliseconds and encoded using base36. The second part is a very large randomly generated number. It is also encoded in base36. The two parts are merely appended to together.
RDM is also made up of two parts. The first is the build_id (can be scraped) that has been encoded in base36. The second is a smaller randomly generated number that is also encoded in base36.
great!!!!!! thx SpK & 39ster!!!Here you go, my buddy 39ster explained it well:
Here you go, my buddy 39ster explained it well:
You are using a wrong function to calculate timestamp. I've had that issue too, this function fixed it though:Just to make clear something:
plid = h32t5crv2os1emhg2
in base10 it's = 135977714756036522606884828
random number is = 36522606884828
time in milisec is = 1359777147560
And that is confusing. How time can be 1359777147560, while I send request when time was 1338891169207? Maybe they are calculating time from different starting date?
Thank you SpK for everything![]()
[COLOR=#006699][FONT=Consolas]Public [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Timestamp[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]([/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Optional [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]ByVal [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Milliseconds [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Boolean[/FONT][/COLOR][COLOR=#888888][FONT=Consolas] = [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]True[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]) [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]String
[/FONT][/COLOR] [COLOR=#006699]If[/COLOR] [COLOR=#444444]Milliseconds[/COLOR] [COLOR=#006699]Then
[/COLOR] [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000
[/COLOR] [COLOR=#006699]Else
[/COLOR] [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000000
[/COLOR] [COLOR=#006699]End[/COLOR] [COLOR=#006699]If
[/COLOR][COLOR=#006699][FONT=Consolas]End [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function[/FONT][/COLOR]
You are using a wrong function to calculate timestamp. I've had that issue too, this function fixed it though:
Code:[COLOR=#006699][FONT=Consolas]Public [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Timestamp[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]([/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Optional [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]ByVal [/FONT][/COLOR][COLOR=#444444][FONT=Consolas]Milliseconds [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Boolean[/FONT][/COLOR][COLOR=#888888][FONT=Consolas] = [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]True[/FONT][/COLOR][COLOR=#888888][FONT=Consolas]) [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]As [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]String [/FONT][/COLOR] [COLOR=#006699]If[/COLOR] [COLOR=#444444]Milliseconds[/COLOR] [COLOR=#006699]Then [/COLOR] [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000 [/COLOR] [COLOR=#006699]Else [/COLOR] [COLOR=#006699]Return[/COLOR] ([COLOR=#2b91af]DateTime[/COLOR].[COLOR=#444444]Now[/COLOR].[COLOR=#444444]ToUniversalTime[/COLOR]().[COLOR=#444444]Ticks[/COLOR] - [COLOR=#ee0000]621355968000000000L[/COLOR]) \ [COLOR=#ee0000]10000000 [/COLOR] [COLOR=#006699]End[/COLOR] [COLOR=#006699]If [/COLOR][COLOR=#006699][FONT=Consolas]End [/FONT][/COLOR][COLOR=#006699][FONT=Consolas]Function[/FONT][/COLOR]
public long UnixTimeNow()
{
TimeSpan _TimeSpan = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0));
return (long)_TimeSpan.TotalSeconds;
}
private void Form1_Load(object sender, EventArgs e)
{
long playbackStartTime = UnixTimeNow();
string rt = ((UnixTimeNow() - playbackStartTime) / 1000).ToString("N3");
string rdm = "m4vdvn" + result;
long Timestamp = ((DateTime.Now.Ticks - 621355968000000000L) / 10000);
string Timestamp36 = Base36Encode(Timestamp);
Random rnd = new Random();
byte[] buffer = new byte[8];
rnd.NextBytes(buffer);
long longrandom = BitConverter.ToInt64(buffer, 0);
Base36Encode(longrandom);
string longrandom36 = Base36Encode(longrandom);
string plid = Timestamp36 + longrandom36;
}
Works fine without changing anything.
If it's not difficult I would like to get this via PM too. As if this topic about it, it's quite funny to read the opposites telling that asking for this is someway wrong.Hell yeah, I want to get in on SPK's working bot...if someone could pm me the link....just tell me what you want
I dont know about the old RTSP bot working again. I tried it yesterday and it doesnt seem to work.
Ohh its working, 100%
All though all i have tried is Magic Views
Isn't this post a rip off from another blog?
The link to that blog was posted in BHW a few days back...