 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sun Jan 06, 2008 9:28 am Post subject: |
|
|
| Anonymous wrote: | | automaticman wrote: | | I tried funHU_YTB_AUDIO_RECORD02.ahk ... "download finished" but then I can't see any file there? What might be wrong? |
You need to install DirectShow filter for FLV. Then, you can play .flv in Windows Media Player, Media Player Classic, or with MCI. | I can play .flv files, but the code above as mentioned isn't working here. I've to find out why not. |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sun Jan 06, 2008 9:37 am Post subject: |
|
|
| funHU_YTB_AUDIO_RECORD03.ahk says here "URL2 not found". So I don't know what's wrong with this version. |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sun Jan 06, 2008 9:39 am Post subject: |
|
|
| automaticman wrote: | | I tried funHU_YTB_AUDIO_RECORD02.ahk and it seems to work properly, says "download finished" but then I can't see any file there? What might be wrong? | Sorry, it works perfectly now, my firewall was blocking the download I just saw... sorry. |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sun Feb 03, 2008 1:46 pm Post subject: |
|
|
| Now it doesn't work anymore again. Did anything change in YouTube websites? |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Sun Feb 03, 2008 3:53 pm Post subject: |
|
|
hello automaticman,
yes, often changed in youtube, last changed 29. Jan 2008, I tried now, it works , see first page
| Quote: | | UPDATE=20080129 [testscript below and last version] |
here another example (third example) :
http://www.autohotkey.com/forum/topic27264.html |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sun Feb 03, 2008 4:03 pm Post subject: |
|
|
| Strange, here it doesn't work. |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Sun Feb 03, 2008 5:43 pm Post subject: |
|
|
can you try the testscript in page 1
check downloaded textfile YTB1.txt for
var fullscreenUrl = '/watch_fullscreen?fs=1&e=h&video_id=J7noYuasI3k&l=127&sk=0hFV8M86AjTE13psZUFM6gC&t=OEgsToPDskIz2Cbk0CSMaAlOjZBbGeUf&hl=en
| Code: |
VANAF1a=var fullscreenUrl = '/watch_fullscreen? ;search in
VANAF1b=&video_id= ;search from
UNTIL1a=&hl ;search until
|
other ideas:
|
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 02, 2008 12:29 pm Post subject: |
|
|
Hi is it possible to use this without the lbbrowse dll?
when the script is run and No is selected to download the dll, the script closes.
When this originally came out when it was call Youtube Manager, and it worked without any external files or dlls. |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Sun Nov 02, 2008 12:49 pm Post subject: |
|
|
dll needs only for display in gui
another script to download youtube video
copy url with (ctrl+c) or rightclick
automatically renames to rightname.flv -or- ( rightname.mp4 (if exists) )
http://www.autohotkey.com/forum/topic34932.html |
|
| Back to top |
|
 |
mtman1020
Joined: 08 Aug 2008 Posts: 36
|
Posted: Wed Dec 03, 2008 3:11 pm Post subject: |
|
|
garry (or anyone else),
I finally got this to work (took forever to figure out that Firefox wasn't using disk cache which is why I couldn't find any cached videos) but I'm not getting MP3 files and the FLV files are squished horizontally so you can't even tell what they are.
Is this supposed to create MP3 files from youtube videos watched or does it only find MP3 files you have listened to?
Is there a reason why the videos are squished? (they worked fine in youtube)
Should I be using a different ahk script?
Thanks for the help!!
This is the one I am using:
| Code: | DATEMOD=20071115/2
/*
DATE.............................2007-11-15 garry
NAME.............................Firefox_Cache_Convert.ahk
USE..............................Reads Cache in Firefox and move and rename found files to xy.mp3 xy.flv
while surfing in youtube you find viewed movies in the cache from firefox
search for the correct path, example :
C:\Dokumente und Einstellungen\Administrator\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\kjf29nqa.default\Cache
...................................................
http://www.autohotkey.net/~garry/Firefox_cache.jpg
http://www.autohotkey.net/~garry/FIREFOX_CACHE.ahk
*/
#NoEnv
setworkingdir, %a_scriptdir%
; your correct path here:
AA2=C:\Documents and Settings\djbarnes\Local Settings\Application Data\Mozilla\Firefox\Profiles\pecnh8zn.default\Cache
R3V=%A_scriptDir%\_FROMCACHE ;copies found mp3/flv here
ifnotexist,%R3V%
FileCreateDir,%R3V%
AutoTrim Off
transform,S,chr,32
;Gui,3: +AlwaysOnTop
Gui,3:Font,,FixedSys
DATE2:=0
SIZEFLV:=20000 ;minimumsize for flv
SIZEMP3:=1000 ;minimumsize for mp3
ANK=%A_NOW%
stringmid,DTS1,ANK,1,8 ;date from today
Gui,3:Add,Text,cgreen x10 y0 h20 w88 ,SIZE-FLV =
Gui,3:Add,Text,cgreen x10 y25 h20 w88 ,SIZE-MP3 =
Gui,3:Add,Text,cgreen x10 y50 h20 w88 ,DATE >=
Gui,3:Add,Edit,cRed x100 y0 h20 w100 vSIZEFLV ,%SIZEFLV%
Gui,3:Add,Edit,cRed x100 y25 h20 w100 vSIZEMP3 ,%SIZEMP3%
Gui,3:Add,Edit,cRed x100 y50 h20 w100 vDATE2 ,%DTS1%
Gui,3:Add,Button, x280 y0 h20 w120 gYOUTUBE ,YOUTUBE
Gui,3:Add,Button, x280 y25 h20 w120 gDADX ,DADX
Gui,3:Add,Button, x280 y50 h20 w120 gJango ,JANGO
Gui,3:Add,Button, x1 y75 h20 w400 gCONVERT ,FLV-MP3 from CACHE to Folder _FROMCACHE
Gui,3:Add,Button, x1 y100 h20 w400 gCACHE ,FIREFOX FOLDER-CACHE
Gui,3:Show, x100 y20 h120 w420 ,FIREFOX-CACHE
return
;----------------
YOUTUBE:
run,http://www.youtube.com/
return
;----------------
DADX:
run,http://www.dadx.com
return
;----------------
JANGO:
run,http://www.jango.com/users/481588?l=0
;run,http://www.jango.com
return
CACHE:
run,%AA2%
return
;-----------------
3GUICLOSE:
gosub,convert
exitapp
CONVERT:
gui,3:submit,nohide
I=0
FSIZE:=0
TM1:=0
Loop %AA2%\*.*
{
S1=
S2=
exten=
LFP=%A_LoopFileLongPath%
LFN=%A_LoopFilename%
stringmid,LFN1,LFN,1,1
if LFN1=_
continue
FileReadLine,VAR1,%LFP%,1
stringmid,S1,VAR1,1,3
if S1=FLV
{
exten=flv
FileGetSize,FSize,%LFP%
if FSIZE<%SIZEFLV%
continue
}
FileReadLine,VAR2,%LFP%,1
stringmid,S2,VAR2,1,3
if S2=ID3
{
exten=mp3
FileGetSize,FSize,%LFP%
if FSIZE<%SIZEMP3%
continue
}
if (exten="flv" OR exten="mp3")
goto,skip02
else
continue
SKIP02:
Filegettime,TM1,%LFP%,C
stringleft,TM1,TM1,8
if TM1>=%DATE2%
{
new=%LFN%.%exten%
I++
FileCopy,%LFP%,%R3V%\%new%,1
}
}
if I>0
{
run,%R3V% ;opens folder if found
return
}
else
{
msgbox, No files mp3/flv found in FIREFOX CACHE`nSIZE-FLV=%SIZEFLV%`nSIZE-MP3=%SIZEMP3%`nDATE>=%DATE2%
return
}
return
;-----------------------------------
;3GUICLOSE:
;exitapp
|
|
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Wed Dec 03, 2008 8:09 pm Post subject: |
|
|
hello mtman,
try the easier version to download youtube videos with best quality (if exist)
http://www.autohotkey.com/forum/topic34932.html
------------------------------------------------------
I think I should take more time for the scripts
it works for me (not all will be saved )
;http://www.autohotkey.com/forum/topic25694.html
;--------- MOZILLA FIREFOX CACHE WHERE IS IT (?) ---------------------------
typein in browser mozilla FireFox:
about:cache?device=disk
see follow:
Cache Directory: (example)
AA2=C:\Dokumente und Einstellungen\Administrator\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\kkik01gb.default\Cache
Example works for me:
| Code: | ;--------- saved at Donnerstag, 17. April 2008 20:32:36 --------------
MODIFIED=20071117
;-------------------------------------------------------------------
/*
for FIREFOX > reads / copy / rename cache >> xy.mp3 xy.flv
--------------------------------------------------------------
while surfing watching video (wait scrollbar should be 100%)
or listening music
like > youtube metacafe ehrensenf ... etc
the files are downloaded already to CACHE
; here the end of your script which you every day use
or make a button
; copies and rename CACHE to your New Folder when close
; before you clear cache in the firefox browser
; http://www.autohotkey.net/~garry/FireFox_Cache01.jpg
try this (MP4):
;http://www.autohotkey.com/forum/topic34932.html
;http://www.autohotkey.com/forum/topic25694.html
;--------- MOZILLA FIREFOX CACHE WHERE IS IT (?) ---------------------------
typein in browser mozilla FireFox:
about:cache?device=disk
see follow:
Cache Directory: (example)
AA2=C:\Dokumente und Einstellungen\Administrator\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\kkik01gb.default\Cache
*/
;-------------------------------------------------------------
;-----------------------------------------------
FIREFOXCACHE:
;Gui,1:submit,nohide
;------------------------------- your correct path here -----------------------------------------------------------------------------
;AA2=C:\Dokumente und Einstellungen\Administrator\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\kjf29nqa.default\Cache
AA2=C:\Dokumente und Einstellungen\Administrator\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\kkik01gb.default\Cache
;------------------------------------------------------------------------------------------------------------------------------------
ifnotexist,%AA2%
{
msgbox,Search for the correct path from your FirefoxCache like :`n C:\......\Firefox\Profiles\kjf29nqa.default\Cache
return
}
;----------------------------------------------------------------------------
R3CACHE=C:\_REC_FIREFOX_CACHE ;copied video /music found here as mp3/flv
ifnotexist,%R3CACHE%
FileCreateDir,%R3CACHE%
;----------------------------------------------------------------------------
;--------------------------------
I7=0
Loop %AA2%\*.*
{
S1=
S2=
exten=
LFP=%A_LoopFileLongPath%
LFN=%A_LoopFilename%
stringmid,LFN1,LFN,1,1
if LFN1=_
continue
FileReadLine,VAR1,%LFP%,1
stringmid,S1,VAR1,1,3
if S1=FLV
{
exten=flv
}
FileReadLine,VAR2,%LFP%,1
stringmid,S2,VAR2,1,3
if S2=ID3
{
exten=mp3
}
if (exten="flv" OR exten="mp3")
goto,skip02
else
continue
SKIP02:
{
new=%LFN%.%exten%
I7++
FileCopy,%LFP%,%R3CACHE%\%new%,1
}
}
if I7>0
{
run,%R3CACHE% ;opens folder if found
return
}
else
{
msgbox, No files mp3/flv found in FIREFOX CACHE:`n%AA2%
return
}
return
;-----------------------------------
|
|
|
| Back to top |
|
 |
mtman1020
Joined: 08 Aug 2008 Posts: 36
|
Posted: Thu Dec 04, 2008 3:23 pm Post subject: |
|
|
| garry wrote: | ;--------- MOZILLA FIREFOX CACHE WHERE IS IT (?) ---------------------------
typein in browser mozilla FireFox:
about:cache?device=disk
see follow:
Cache Directory: (example)
AA2=C:\Dokumente und Einstellungen\Administrator\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\kkik01gb.default\Cache
|
I actually had to turn on disk cacheing....
I would recommend starting with "about:cache" which will show you where things are going. All of my entries were in memory cache.
If you have an entry for "Disk cache device" that has a number under the field "Number of entries:" larger than 0, you are set, just use the path in the field "Cache Directory:" for your variable "AA2" in Gary's example above.
If you don't have the "Disk cache device" entry, You should start with "About:config" in the address window (where you type URLs).
Right click, new, string, will give a dialog box that will find the entry you are looking for. Search for "browser.cache.disk.enable" then you can right click on the highlighted line (browser.cache.disk.enable) and select "toggle" if it is set to "false". When that is set to True, the next step is to allocate size. Search for "browser.cache.disk.capacity" (or just look at the line above "browser.cache.disk.enable") and pick a value. If it is set to 0 you are not using that feature so pick a new value in KB (default is 50000, I personally picked 70000 to accomodate the video clips) by selecting "modify" from the right click menu...
__________________________________________________________
I am not able to view the MP4 video to see if it looks right because I don't have admin priviledges to load an MP4 codec or the MP3 converter so I'll have to download the video then take it home to rip the MP3 from it... |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
|
| Back to top |
|
 |
mtman1020
Joined: 08 Aug 2008 Posts: 36
|
Posted: Mon Dec 08, 2008 3:29 pm Post subject: |
|
|
Garry,
Thank you for a wonderful script to download videos (and the link for a nice small program to rip the audio from them)!!!!
They all worked very nicely on my wife's laptop, so I am very happy I got my Frank Zappa and Ray Stevens songs. I was even able to play all the videos on my home computer (Linux) without needing any additional programs.  |
|
| Back to top |
|
 |
mtman1020
Joined: 08 Aug 2008 Posts: 36
|
Posted: Thu Feb 12, 2009 2:21 pm Post subject: |
|
|
I also solved my problem of not being able to see the videos at work by switching from Windows Media Player to VLC Media Player... works great, no plugins to load and no administrative priviledges needed to install nad doesn't crash for no reason....  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|