AutoHotkey Community

It is currently May 26th, 2012, 1:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: January 6th, 2008, 10:28 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2008, 10:37 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
funHU_YTB_AUDIO_RECORD03.ahk says here "URL2 not found". So I don't know what's wrong with this version.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2008, 10:39 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2008, 2:46 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
Now it doesn't work anymore again. Did anything change in YouTube websites?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2008, 4:53 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2008, 5:03 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
Strange, here it doesn't work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2008, 6:43 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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:
Quote:
How To .... download 50 music-videos while watching/listening them .....
===========================================================================

example run:
http://www.muvibee.com/watch/?q=jim+reeves&t=all
shows 50 videos
click on the first play button
they are saved to mozilla firefox cache
or
IE IndexDat

remark:
if you want just save ,click play and wait until progress bar is 100%
and then click the next video


can get the videos with script:
FireFoxCache-copy:
http://www.autohotkey.com/forum/topic25694.html


IE_indexDat-read/Firefox-Cache :
http://www.autohotkey.com/forum/topic25556.html


scripts to automatically save video when copied url in youtube and convert to MP3:
http://www.autohotkey.com/forum/topic14882.html

===========================================================================


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2008, 1:29 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2008, 1:49 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 4:11 pm 
Offline

Joined: August 8th, 2008, 1:40 am
Posts: 36
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 9:09 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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
;-----------------------------------


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 4:23 pm 
Offline

Joined: August 8th, 2008, 1:40 am
Posts: 36
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 8:44 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
hello mtman1020,
thank you for explanation about mozilla cache

here a script (2nd) =
-saves video (flv)
-saves audio (mp3) and renames
http://www.autohotkey.com/forum/viewtop ... 021#160021

===========================================
easier example to download Youtube MP4 ( highest quality if exist )
http://www.autohotkey.com/forum/viewtop ... 517#215517


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2008, 4:29 pm 
Offline

Joined: August 8th, 2008, 1:40 am
Posts: 36
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. :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2009, 3:21 pm 
Offline

Joined: August 8th, 2008, 1:40 am
Posts: 36
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.... :D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Klark92 and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group