[Q] Coding a Youtube Downloader - General Questions and Answers

Okay I have a problem, im writing a Youtube Downloader in C++, and there is one last thing I have to do.
First thing my Programm does is to read Youtube links from a .txt file.
Then copys the Video-ID and Downloads the "get_video_info" file from
http : // www . youtube . com / get_video_info?video_id = Video-ID
Next thing is to filter out the Title of the Video from the File Downloaded.
Then my Programm goes through the file and searches for the "real" direct link to the Video. And that is where my problem is.
My programm outputs this link:
http : //o-o.preferred.fra02s05.v15.lscache4.c.youtube . com/videoplayback?upn=VJexPzMq2RI&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=900064&itag=18&ip=88.0.0.0&signature=4E5DC77FED2C78A7D84C645D951F6F6AF41618AC.A8881B29FB27C650B970E35A07715616880CD6BB&sver=3&ratebypass=yes&source=youtube&expire=1335324055&key=yt1&ipbits=8&cp=U0hSSlNNUl9KT0NOMl9LR1ZBO lktb0NVVDZvbV9a &id=b7bf0b88a6995ec5
But When I open the link, nothing happens. I know that there is something wrong in my link. Some parts of it are generic, but i know that the last part is wrong.
This part is wrong:
cp=U0hSSlNNUl9KT0NOMl9LR1ZBO lktb0NVVDZvbV9a
more exactly this:
lktb0NVVDZvbV9a
I know that that must be different, something like this: jBRMVRrdU11cjRS
But I have no idea where I can find the valid string. If anyone knows where I can find it, please tell me.
Hope you understand what I mean.

Related

Voice dialling

Does the xda 2 have voice dialling features? If not, how could I get around this?
Re: Voce dialling
delon said:
Does the xda 2 have voice dialling features? If not, how could I get around this?
Click to expand...
Click to collapse
You can use the Microsoft Voice Command program
HTH
Stefan
You can find it @ a.b.warez.pocketpc
or pay 40U$.
Sorry, I'm a newbie with newsgroups.... Could u help me setup the newsgroup for a.b.warez.pocketpc? Any help would be greatly appreciated..... thanks....
I've got the same problem. I would love to check that newsgroup as well but I do not find a newsserver containing that group.
Could somebody please post the address of a newsserver that is able to check that group?
Thanks a lot...
how to enter news groups
get the address of the new group server of your isp
use a newreader program like outlook express or something else
scann for usegroups sellect the newgroup you want and enter it
news groups is not really http based
well are not as a rule anyway
I am living in a students home with LAN-connection to the net. So there is no dial-up ISP. The newsserver of my university does not accept the above mentioned group.
Is there a kind of workaround to read this group?
News groups
For all you newbees; Let me address this message first;
:!: It's illegal to download software from newsgroups! :!:
But I can't stop you from doing so... :twisted:
the best way to read newsgroups is to take 5 steps;
1; Get a program that reads alt.binaries posts; like grabit and install the progam.
2; Get a newsserver account or check your ISP. (mostly they also have access to newsgroups but are limited.)
like;
I use www.usenet.com
www.easynews.com
www.usenetserver.com
www.giganews.com
www.supernews.com
www.astraweb.com
www.usenetmonster.com
www.100proofnews.com
(get a account that gives you unlimited download. Should cost you about 15 U$ a month.)
3; then find a post message site like (www.nfonews.com)where groups tell other people what they are posting and where you can find the files. (like the Voice Command from M$) :lol:
Alot of Dutchies are using FTD. (This is a program)
But there are numerious sites that will give you this info.
4; Once you have the info where you can find your ‘points of interest’, start your grabber software and subscribe your news account info.
Then find the location. E.g; alt.binaries.warez.pocketpc
Grabber finds the location and you can start downloading your ‘points of interest’.
Most files are wrapped as *.rar files. So you need to have a rar program to unpack the files. There are also *.par files. you also need those files if the program is brokendown in hunderds of *.rar files. *.par files are a sort of repair files. Let say you mis a couple of *.rar files of LOTR dvd. (yes you can find everything) Mostly the uploader will place also *.par files to repair the lost *rar files. So you still have the full program you are downloading.
5; The last thing you have to do is buy a bigger hard disk. B/c you are constantly downloading new things.. 120gb is not big.
More info @ :arrow: http://www.shemes.com/community/viewforum.php?f=6
Hope this helps you a little bit more on your quest for golden software treasures..

Downloading files on XDA2

Forgive me if this has been covered elsewhere, but can't find an answer through searching.
When I try to dowload files from a forum, Pocket IE downloads the DOWNLOAD.PHP file - which of course don't do nothin'.
Is it possible to download files from this site directly onto PPC using Pocket IE?
Cheers.
Open the PHP file in a text editor (like Word, I suppose)
There should be a link (it may be a relative link) to the file in there.
If you don't know enough about HTML & HTTP to be able to figure it out, don't download files from forums.
madkat said:
Open the PHP file in a text editor (like Word, I suppose) There should be a link (it may be a relative link) to the file in there.
Click to expand...
Click to collapse
Had a look at a text dump of the file (after emailing it to my web-based email account so I could view it on my terminal at work). No link there.
madkat said:
If you don't know enough about HTML & HTTP to be able to figure it out, don't download files from forums.
Click to expand...
Click to collapse
Thank you for your advice. I was planning to drive home tonight, but since I don't know enough about the internal cumbustion engine, I suppose I'd better walk.
Stuart Walker
www.hyperchamber.com
Good answer
Good answer, Stuart!! I like it a lot!!

Hyperlink code to force ftp download

What is the proper format for html hyperlink code that will cause a file to download to the phone and not have the browser try to open it? I have files that are text, they are GPS files, but they don't have a TXT extension and IE keeps opening the files as text.
If it matters (but I don't think so) I'm running a reasonably stock HTC WM 6.0 ROM on a Hermes.
Regards,
GPSGary
You want to do this server-side? Or client-side?
FTP download code
I'm trying to write html code that will cause a file on my web site to download directly to the phone file directory without the browser trying to open it. It would be extra useful if I could make it download to a specific existing directory.
Regards,
GPSGary
Well, I hate to say this but you can't. That's the simple answer.
The complicated answer is that you need to set up some sort of server-side script to place the headers manually, or you need to modify some of the settings for your server's remote access handler. On Apache servers, this can be done via a file called .htaccess.
If you have a .htaccess file that you can modify, just enter this at the top of it:
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} \.(gps|cab)$
RewriteRule .* - [T=application/octet-stream,L]
Note that I didn't know the extension you're talking about so I put "gps" up there. I also added "cab" because many servers have a tendency to not send the proper headers for cab files. Feel free to add other extensions using this same method.
Again, this is assuming you have an Apache server, and you have the privileges to modify a .htaccess file.
Forcing ftp type download
No Apache server so isn't there some other way?
Anyone got a good Java script?
Regards,
GPSGary
Hi there,
as far as I know, you don't need java:
ftp-links are always proposed to "Save File", so your link should be ftp://www.domain.com/folder/filename.txt
This will cause any browser to download the file instead of opening it.
In that case, you definitely need an real ftp access to your file ... (ftp = FIleTransferProtocol).
Best regards,
I've encountered this before and resorted to zipping the file. You can also spoof the system by renaming the file to *.AAA The user, of course, will have to rename the file on their end. I have better luck with .zip unless it's for my own use. Any file which is recognized natively by the browser will open within the browser. This includes .txt, .htm, .html, and any other file associations you've successfully loaded.
gepp said:
No Apache server so isn't there some other way?
Anyone got a good Java script?
Regards,
GPSGary
Click to expand...
Click to collapse
That's what I'm tellin' ya. It's IMPOSSIBLE to do this with client-side scripting, i.e., Javascript.
I'd like to help you get this resolved. Can you clarify some things for me?
Are you using Geocities, Fortunecity, Google Pages, or one of the other free site services out there?
Do you understand the distinction I'm making between client-side and server-side scripting?
What server software are you using, if not Apache?
Are you able to utilize a PHP or Perl engine? (I can tell you how to send the file headers manually through either of those.)
I promise I'm not trying to be rude or anything. I just want to make sure we're both on the same page here. I can tell you the best way of getting this resolved, but I need to know where you stand, and I need to know the extent of your web development knowledge.
PHP or Perl will work
I'm on a Yahoo small business server. I've used PHP so that will work on my site and I know enough to fiddle with it if need be. Less proficient with Perl but have some exposure.
Regards,
GPSGary
Awesome. That works. Here is what you will basically be doing with PHP then.
PHP:
ob_start()
$GPSFile = '/path/to/file.gps'; //This is where the file is located on your Yahoo Business server
$DownloadName = "File.gps"; //This is the name that pops up when you're prompted to download the file (it can be different than the name above).
$TypeOfFile = 'text/plain'; //If you still have issues, change this to 'application/octet-stream'
header("Cache-Control: public, must-revalidate");
header("Pragma: hack");
header("Content-Type: " . $TypeOfFile);
header("Content-Length: " .(string)(filesize($GPSFile)) );
header('Content-Disposition: attachment; filename=' . $DownloadName);
header("Content-Transfer-Encoding: binary\n");
od_end_clean();
readfile($GPSFile);

syslog listener and viewer

Hey guys,
I am looking for a simple app to receive and view in realtime syslogs which
I forward from my pc to my android device.
I have searched and searched and searched and cam across a few servermonitoring tools
and nxlog. But those ar far to complicated or overdone for what i want.
Simply listen on udp port 1514 for example and watch the received messages directly on screen.
No need to write to disk, simply watch the de messages.
I couldnt find anything or I am searching with the wrong keywords.
Alternative would be following the logfiles which ar written on my pc, sort of baretail for android lol.
I hope anyone can put me in the right direction.
Thanks .
Lanbase

new to application development I need something explained

I have been working on an app that I've been coding in HTML 5 CSS and JavaScript.. here is a website that I went to for software that I I'm able to use to compile my HTML 5 Javascript and CSS files. the software from this website just packages it all up into a single apk file for me to install. the problem is that I get a different icon in the file name that I don't want. what exactly does this program do. all I'm trying to figure out is where the strings come from for the app title and where the iPhone comes from from the app. and what exactly does it mean when the application is being signed and how can I change this signature.
the software I'm talking about comes from a website who is donating domain name is mrchay which you can Google search

Categories

Resources