MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Il Punto d'incontro dei Fans MLB di Play.it USA
Locked
User avatar
thegrimreaper
Rookie
Rookie
Posts: 244
Joined: 09/03/2009, 15:44
MLB Team: Boston Red Sox

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by thegrimreaper »

MILANO1946_ultrà wrote: L'altro metodo ora funzia anche a me.

Vorrei una info. Esiste un modo per non scaricarsi l'intera "libreria" e invece scaricarsi solo la partita o le partite che interessano?
Per non scaricarsi tutti i Condensed Games della data indicata ma solo alcune squadre:

1a) Se su DOS/WINDOWS, aprire con notepad il file getcondensed.awk
1b) Se su UNIX/LINUX, aprire con vi il file getcondensed.sh

2) Cercare questa riga:

Code: Select all

	if ( $11 == "" ) next
3)
Se ti interessa una sola squadra, aggiungi la seguente linea dopo la riga trovata:

Code: Select all

        if ( match($2,/Yankees/) ) ; else next
Se ti interessano due squadre, aggiungi la seguente linea dopo la riga trovata:

Code: Select all

	if ( match($2,/Yankees/) || match($2,/Red Sox/) ) ; else next
Image

Se ti interessano tre o piu' squadre, aggiungi la seguente linea dopo la riga trovata secondo il modello e cosi' via per ulteriori squadre:

Code: Select all

	if ( match($2,/Yankees/) || match($2,/Red Sox/) || match($2,/Tigers/) ) ; else next
4) Salvare il file

5) Rilanciare come al solito il comando

Peace!
Well... it's like... when a great baseball team loses its clean-up hitter, suddenly everybody's swinging for the fences and nobody's playing small ball. (Cit. Sara Sidle - CSI: Las Vegas)
MILANO1946_ultrà
Senior
Senior
Posts: 1157
Joined: 28/01/2008, 19:59
Contact:

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by MILANO1946_ultrà »

Quindi se io aggiungessi nella stringa con Pirates, ogni giorno, automaticamente (cioè senza una modifica continua per ogni partita) mi scaricarebbe solo i condensed dei Pirates.

EDIT: ho capito, perfetto, grazie mille per questa nuova travata. E' ottima!
Last edited by MILANO1946_ultrà on 25/06/2009, 13:16, edited 1 time in total.
User avatar
thegrimreaper
Rookie
Rookie
Posts: 244
Joined: 09/03/2009, 15:44
MLB Team: Boston Red Sox

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by thegrimreaper »

MILANO1946_ultrà wrote: Quindi se io aggiungessi nella stringa con Pirates, ogni giorno, automaticamente (cioè senza una modifica continua per ogni partita) mi scaricarebbe solo i condensed dei Pirates.
Modificando cosi' il file getcondensed.awk

Code: Select all

        if ( $11 == "" ) next
        if ( match($2,/Pirates/) ) ; else next
e lanciando getcondensed.bat con la data a mano al solito modo, ti scarichi il Condensed dei Pirates

"ogni giorno, automaticamente"
Questo e' un altro "film" perche' devi trovare il modo di pianificare il lancio del .bat a una certa ora ogni giorno cambiando la data e in questo caso la faccenda si complica soprattutto sotto Windows
Well... it's like... when a great baseball team loses its clean-up hitter, suddenly everybody's swinging for the fences and nobody's playing small ball. (Cit. Sara Sidle - CSI: Las Vegas)
MILANO1946_ultrà
Senior
Senior
Posts: 1157
Joined: 28/01/2008, 19:59
Contact:

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by MILANO1946_ultrà »

Sì, mi sono espresso male, intendevo "automaticamente" nel senso che una volta acceso ti scarica automaticamente solo quella condensed games.

ps= Grazie mille  :forza:
User avatar
guerrero_27
Rookie
Rookie
Posts: 272
Joined: 09/12/2006, 12:47
MLB Team: Boston Red Sox
NFL Team: New England Patriots
NBA Team: Boston Celtics
NHL Team: Florida Panthers
Location: Firenze, Toscana

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by guerrero_27 »

Bella roba! Grazie mille!
Image
User avatar
Eclipse612
Rookie
Rookie
Posts: 969
Joined: 09/03/2009, 12:51
Location: Liguria

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by Eclipse612 »

Figo! Io non sapevo nemmeno che i condensed fossero gratis!

Doppio grazie!
Image

Image

Image
shilton
Pro
Pro
Posts: 19883
Joined: 24/02/2007, 0:49
MLB Team: Kansas City Royals
NFL Team: Green Bay Packers
Location: Sondrio, valle di Lacrime

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by shilton »

:shocking: :shocking: :shocking:
ImageImage
Shilton meglio di Buffon (Pap)Raramente in vita mia ho visto dal vivo compiere interventi simili (Dazed)
dicmod
Senior
Senior
Posts: 2897
Joined: 18/10/2006, 10:16
MLB Team: Phillies
NFL Team: Eagles
NBA Team: Utah Jazz
NHL Team: Flyers
Location: Cuneo

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by dicmod »

Devo dire che mi dovrò ricredere ormai faccio sempre più parte del triste popolo dei condensed e questo strumento mi potrebbe tornare utilissimo per scaricare sul lavoro senza dare minimamente nell'occhio! Poi metto tutto dentro lpod e mentre torno a casa mi schianto felicemente contro un palo!
User avatar
thegrimreaper
Rookie
Rookie
Posts: 244
Joined: 09/03/2009, 15:44
MLB Team: Boston Red Sox

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by thegrimreaper »

dicmod wrote: Devo dire che mi dovrò ricredere ormai faccio sempre più parte del triste popolo dei condensed e questo strumento mi potrebbe tornare utilissimo per scaricare sul lavoro senza dare minimamente nell'occhio! Poi metto tutto dentro lpod e mentre torno a casa mi schianto felicemente contro un palo!
Dicomod...

Condensed Games in formato speciale e ottimizzato per IPOD/IPHONE e altri videoplayer portatili compatibili

1a) Se su DOS/WINDOWS, aprire con notepad il file getcondensed.awk
1b) Se su UNIX/LINUX, aprire con vi il file getcondensed.sh

2) Cercare questa riga:

Code: Select all

	match(xml, "<url playback_scenario="MLB_FLASH_1000K_PROGDNLD".*</url>")
3a)
Per scaricare un file video con queste caratteristiche:
ImageImage

Sostituire MLB_FLASH_1000K_PROGDNLD con MOBILE_IPHONE_900 cosi:

Code: Select all

	match(xml, "<url playback_scenario="MOBILE_IPHONE_900".*</url>")
3b)
Per scaricare un file video con queste caratteristiche:
ImageImage

Sostituire MLB_FLASH_1000K_PROGDNLD con MOBILE_IPHONE_56 cosi:

Code: Select all

	match(xml, "<url playback_scenario="MOBILE_IPHONE_56".*</url>")
4) Salvare il file

5) Rilanciare come al solito il comando

Have Fun!!!
Last edited by thegrimreaper on 27/06/2009, 14:01, edited 1 time in total.
Well... it's like... when a great baseball team loses its clean-up hitter, suddenly everybody's swinging for the fences and nobody's playing small ball. (Cit. Sara Sidle - CSI: Las Vegas)
MILANO1946_ultrà
Senior
Senior
Posts: 1157
Joined: 28/01/2008, 19:59
Contact:

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by MILANO1946_ultrà »

Mia ignoranza: sai che tipo di MP4 ci voglia per la PSP?
User avatar
thegrimreaper
Rookie
Rookie
Posts: 244
Joined: 09/03/2009, 15:44
MLB Team: Boston Red Sox

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by thegrimreaper »

MILANO1946_ultrà wrote: Mia ignoranza: sai che tipo di MP4 ci voglia per la PSP?
Uhm ... brova a buttargli dentro gli MP4 normali (cioe' senza modificare questa opzione MLB_FLASH_1000K_PROGDNLD)
Se la PSP non ce la fa, prova l'opzione MOBILE_IPHONE_900
Well... it's like... when a great baseball team loses its clean-up hitter, suddenly everybody's swinging for the fences and nobody's playing small ball. (Cit. Sara Sidle - CSI: Las Vegas)
MILANO1946_ultrà
Senior
Senior
Posts: 1157
Joined: 28/01/2008, 19:59
Contact:

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by MILANO1946_ultrà »

Perchè io so che vi vogliono degli MP4 codificati apposta.
Di sicuro:

1)Non funziano quelli in stile "youtube"
2)Non funziano quelli del Ipod (perchè nei programmi di "convert" ti chiede sempre in che formato vuoi convertire e PSP e Ipod sono due opzioni diverse).

Il programma che uso per convertire mi dice che lui i files li trasforma in:

Video Framerate: 29.97
Video Bitrate: 768000
Video size: 368x208
Audio Bitrate: 64000
Audio Stream: MP3
User avatar
lephio
Administrator
Administrator
Posts: 4298
Joined: 14/10/2005, 18:34
MLB Team: Minnesota Twins

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by lephio »

thegrimreaper  :notworthy: :notworthy: :notworthy: :notworthy: :notworthy: :notworthy: :notworthy: :notworthy:
User avatar
thegrimreaper
Rookie
Rookie
Posts: 244
Joined: 09/03/2009, 15:44
MLB Team: Boston Red Sox

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by thegrimreaper »

UPDATE 9/10/2009: Attenzione il sito dell'MLB ha subito qualche ritocco cosmetico.
Fate riferimento al post corrente per modificare gli script necessari a ripristinare il funzionamento del trucchetto.


1a) Se su DOS/WINDOWS, aprire con notepad il file getcondensed.awk
1b) Se su UNIX/LINUX, aprire con vi il file getcondensed.sh

2) Cercare queste righe:

Code: Select all

	gsub(/<td class="mmg_condensed">/, "", $11)
	gsub(/<a href="/, "http://www.mlb.com/", $11)
	gsub(/"><span class="display_text">Watch<\/span><\/a>/, "", $11)

	if ( $11 == "" ) next
	....

	command = "wget -O - " $11 "| grep \"<!-- metafile:.*-->\""
3) Sostituite $11 con $9 cosi':

Code: Select all

	gsub(/<td class="mmg_condensed">/, "", $9)
	gsub(/<a href="/, "http://www.mlb.com/", $9)
	gsub(/"><span class="display_text">Watch<\/span><\/a>/, "", $9)

	if ( $9 == "" ) next
	...

	command = "wget -O - " $9 "| grep \"<!-- metafile:.*-->\""
4) Salvare il file

5) Rilanciare come al solito il comando
Last edited by thegrimreaper on 09/10/2009, 23:11, edited 1 time in total.
Well... it's like... when a great baseball team loses its clean-up hitter, suddenly everybody's swinging for the fences and nobody's playing small ball. (Cit. Sara Sidle - CSI: Las Vegas)
User avatar
guerrero_27
Rookie
Rookie
Posts: 272
Joined: 09/12/2006, 12:47
MLB Team: Boston Red Sox
NFL Team: New England Patriots
NBA Team: Boston Celtics
NHL Team: Florida Panthers
Location: Firenze, Toscana

Re: MLB: Come scaricare i Condensed Games automaticamente e gratis!!! [SOLVED]

Post by guerrero_27 »

Stavo per chiedertelo! Grazie, sei un grande!!! :notworthy: :notworthy: :notworthy:
Image
Locked