עובד מצויןjpost כתב:olorin,
שיניתי מעט את הקוד שבוחר את הפוסטר. נראה שעכשיו הוא נותן עדיפות ל NFO ולקובץ תמונה.
אתה מוזמן לבדוק.
http://www.megaupload.com/?d=HNENQ4E1...
גרסא ניסיונית חדשה v3 ל moviejukebox עם תמיכה בעברית
http://www.hometheater.co.il/modules.ph ... 230#717230lawpower כתב:א. אחלה JPOST - מצוין!
ב. דיזינגוף - כל הכבוד!
מקווה שהעניין עם הכתוביות יסתדר במהרה (שירדו אוטומטית)
מה שרק חסר זה - שיהיה לנו ג'וקבוקס אחד - שזה סרטים שיש להורדה ב NEWS - עם פוסטרים תקצירים וטריילרים - נלחץ שם להורדה - ואז זה יתווסף לנו ישר לג'וקבוקס
מותר לפנטז לא?...
מאד ממליץ !
לאיפה נעלם RAVE - מגיע לו תשבחות.
זאת הפעם המי יודע מה שאני משבח את השירשור שלו שלא זכה בכלל להכרה.
התוכנה והרעיון שלו מעולים !
jpost,
אנחנו ישראלים , אנחנו ידועים בכל העולם ככאלה שחושבים מחוץ לקופסא.
לישראל יש את נתח הסטראטפיסטים הגדול ביחס לאוכלוסיה.. שנמשיך?
מנהלי הפרוייקט לטעמי, העניקו לך חופש יצירה לייצר פלאג עברי וסקין תואם.
אין שום מניעה שתבחר רקע עם דולפינים.. ולא את הרקע השחור שבא עם הסקין defualt..
כנ"ל לגבי גודל הפונט של התקציר - אותו אתה משנה בקובץ ה CSS תחת
skins/hebrew/html/exportdetails_item_popcorn.css
בקובץ זה תוכל לשנות את הלוק כראות עינך ובעיקר את הגדלת הפונט של התקציר בעברית כי הוא אכן קטן לקריאה וכו..
באשר לקוד המוכן הקיים כבר בפרוייקט: להורדה של פוסטר ענק , חיתוכו ושמירתו כפוסטר במוביג'וקבוקס - ניתן לראות את הכלים האלו תחת :
com\moviejukebox\tools\GraphicsTools.java
אני מצרף את הקוד שלי לעיונך המתייחס לחיפוש המדוקדק באתר סב-באבה, אני אומר מדוקדק מכיוון שגיליתי שלפעמים לא תמצא פוסטר לסרט אם אתה מחפש אותו בשמו באנגלית..
ואילו אם אתה מחפש בשמו בעברית (שם הסרט שמשכת מאתר סרטים) אתה כן תקבל פוסטר..
הקוד בודק אם קיים פוסטר גם במחלקת הפוסטרים וגם במחלקת העטיפות DVD.
אם הפוסטר שנמצא גדול ברוחב מ900 פיקסלים הקוד מבצע חיתוך לגודל של פוסטר רגיל ושומר אותו במוביג'וקבוקס.
עכשיו אין מניעה או התנגשות עם הפרוייקט - אני מבין שהפלאג אמור למסור URL של הפוסטר וזה בסדר, אבל אם הפלאג כבר הוריד את הפוסטר הראשי הפרוייקט ישתמש בו הן לפוסטר ולTHUMBNAIL.
מקווה שהצלחתי להבאיר את עצמי..
אני פה לשאלות ולסיעור מוחין
קוד: בחירת הכל
//******************************************************
// first search for a poster THEN Atifa (DVD cover)
//******************************************************
String subbabaPosterURL="";
String finMovieUrl2="";
StringBuffer sb2 = new StringBuffer("http://search.yahoo.com/search;_ylt=A0geu5uyUa1I9hgAFCFXNyoA?p=site%3Asub-baba.com+");
sb2.append(URLEncoder.encode(MovieTITLE, "UTF-8"));
String content2 = request2(new URL(sb2.toString()));
int indexMovieLink2 =0;
int indexMovieLink=0;
while (indexMovieLink2 != -1){
indexMovieLink=indexMovieLink2;
indexMovieLink2 = content2.indexOf("<a href=".php%3fId=",indexMovieLink2+1 );
}
//System.out.println(indexMovieLink2+"\n");
if (indexMovieLink2 != -1) {
finMovieUrl2=content2.substring(indexMovieLink2+12, content2.indexOf("" >",indexMovieLink2));
//System.out.println(finMovieUrl2+"1\n");
subbabaPosterURL="http://www.sub-baba.com/site/download.php?id="+finMovieUrl2+"&type=2";
content2 = request2(new URL(subbabaPosterURL));
indexMovieLink2 = content2.indexOf("<img src="");
finMovieUrl2=content2.substring(indexMovieLink2+10, content2.indexOf("" width=", indexMovieLink2));
subbabaPosterURL="http://www.sub-baba.com/site/"+finMovieUrl2;
// download the poster
String posterFilename = tempJukeboxRoot + File.separator + movie.getPosterFilename();
File posterFile = new File(posterFilename);
if ( !posterFile.exists() ){ // if user put his own poster DONT download poster
downloadPoster2(posterFile, subbabaPosterURL);
}
BufferedImage bi=GraphicTools.loadJPEGImage(new FileInputStream(posterFile));
if (bi.getWidth()>900){
BufferedImage bufImage = new BufferedImage(bi.getWidth()/2-35, bi.getHeight()+80, BufferedImage.TYPE_INT_RGB);
bufImage.createGraphics().drawImage(bi, 0, 0, null, null);
bi=GraphicTools.cropToSize(bufImage.getWidth(), bufImage.getHeight(), bufImage);
GraphicTools.saveImageToDisk( bi, posterFilename);
}
createPoster(posterPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forcePosterOverwrite);
System.out.println("Hebrew Poster Found\n");
} else { // search directly FIRST with MovieTITLE THEN with HebTitle
// search #1 for posters type=1
sb2 = new StringBuffer("http://www.sub-baba.com/site/search.php?submit=%E7%F4%F9&type=1&search=");
sb2.append(URLEncoder.encode(MovieTITLE));
content2 = request2(new URL(sb2.toString()));
indexMovieLink2 =0;
indexMovieLink=0;
while (indexMovieLink2 != -1){
indexMovieLink=indexMovieLink2;
indexMovieLink2 = content2.indexOf("<a href="poco.php?Id=",indexMovieLink2+1 );
}
//System.out.println(indexMovieLink+"\n");
if (indexMovieLink > 0) {
finMovieUrl2=content2.substring(indexMovieLink+21, content2.indexOf(""><img src",indexMovieLink));
//System.out.println(finMovieUrl2+"\n");
subbabaPosterURL="http://www.sub-baba.com/site/download.php?id="+finMovieUrl2+"&type=2";
content2 = request2(new URL(subbabaPosterURL));
indexMovieLink2 = content2.indexOf("<img src="");
finMovieUrl2=content2.substring(indexMovieLink2+10, content2.indexOf("" width=", indexMovieLink2));
subbabaPosterURL="http://www.sub-baba.com/site/"+finMovieUrl2;
// download the poster
String posterFilename = tempJukeboxRoot + File.separator + movie.getPosterFilename();
File posterFile = new File(posterFilename);
if ( !posterFile.exists() ){ // if user put his own poster DONT download poster
downloadPoster2(posterFile, subbabaPosterURL);
}
BufferedImage bi=GraphicTools.loadJPEGImage(new FileInputStream(posterFile));
if (bi.getWidth()>900){
BufferedImage bufImage = new BufferedImage(bi.getWidth()/2-35, bi.getHeight()+80, BufferedImage.TYPE_INT_RGB);
bufImage.createGraphics().drawImage(bi, 0, 0, null, null);
bi=GraphicTools.cropToSize(bufImage.getWidth(), bufImage.getHeight(), bufImage);
GraphicTools.saveImageToDisk( bi, posterFilename);
}
createPoster(posterPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forcePosterOverwrite);
System.out.println("Hebrew Poster Found\n");
} else { // search #2 with movieTITLE for covers "type=2"
sb2 = new StringBuffer("http://www.sub-baba.com/site/search.php?submit=%E7%F4%F9&type=2&search=");
sb2.append(URLEncoder.encode(MovieTITLE));
content2 = request2(new URL(sb2.toString()));
indexMovieLink2 =0;
indexMovieLink=0;
while (indexMovieLink2 != -1){
indexMovieLink=indexMovieLink2;
indexMovieLink2 = content2.indexOf("<a href="poco.php?Id=",indexMovieLink2+1 );
}
//System.out.println(indexMovieLink+"\n");
if (indexMovieLink > 0) {
finMovieUrl2=content2.substring(indexMovieLink+21, content2.indexOf(""><img src",indexMovieLink));
//System.out.println(finMovieUrl2+"\n");
subbabaPosterURL="http://www.sub-baba.com/site/download.php?id="+finMovieUrl2+"&type=2";
content2 = request2(new URL(subbabaPosterURL));
indexMovieLink2 = content2.indexOf("<img src="");
finMovieUrl2=content2.substring(indexMovieLink2+10, content2.indexOf("" width=", indexMovieLink2));
subbabaPosterURL="http://www.sub-baba.com/site/"+finMovieUrl2;
// download the poster
String posterFilename = tempJukeboxRoot + File.separator + movie.getPosterFilename();
File posterFile = new File(posterFilename);
if ( !posterFile.exists() ){ // if user put his own poster DONT download poster
downloadPoster2(posterFile, subbabaPosterURL);
}
BufferedImage bi=GraphicTools.loadJPEGImage(new FileInputStream(posterFile));
if (bi.getWidth()>900){
BufferedImage bufImage = new BufferedImage(bi.getWidth()/2-35, bi.getHeight()+80, BufferedImage.TYPE_INT_RGB);
bufImage.createGraphics().drawImage(bi, 0, 0, null, null);
bi=GraphicTools.cropToSize(bufImage.getWidth(), bufImage.getHeight(), bufImage);
GraphicTools.saveImageToDisk( bi, posterFilename);
}
createPoster(posterPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forcePosterOverwrite);
System.out.println("Hebrew Poster Found\n");
} else { // search direct now with HebTitle
sb2 = new StringBuffer("http://www.sub-baba.com/site/search.php?submit=%E7%F4%F9&type=0&search=");
sb2.append(URLEncoder.encode(HebTitle));
content2 = request2(new URL(sb2.toString()));
indexMovieLink2 = content2.indexOf("<a href="poco.php?Id=");
//System.out.println(indexMovieLink2+"2\n");
if (indexMovieLink2 != -1) {
finMovieUrl2=content2.substring(indexMovieLink2+21, content2.indexOf(""><img src",indexMovieLink2));
//System.out.println(finMovieUrl2+"\n");
subbabaPosterURL="http://www.sub-baba.com/site/download.php?id="+finMovieUrl2+"&type=2";
content2 = request2(new URL(subbabaPosterURL));
indexMovieLink2 = content2.indexOf("<img src="");
finMovieUrl2=content2.substring(indexMovieLink2+10, content2.indexOf("" width=", indexMovieLink2));
subbabaPosterURL="http://www.sub-baba.com/site/"+finMovieUrl2;
// download the poster
String posterFilename = tempJukeboxRoot + File.separator + movie.getPosterFilename();
File posterFile = new File(posterFilename);
if ( !posterFile.exists() ){ // if user put his own poster DONT download poster
downloadPoster2(posterFile, subbabaPosterURL);
}
BufferedImage bi=GraphicTools.loadJPEGImage(new FileInputStream(posterFile));
if (bi.getWidth()>900){
BufferedImage bufImage = new BufferedImage(bi.getWidth()/2-35, bi.getHeight()+80, BufferedImage.TYPE_INT_RGB);
bufImage.createGraphics().drawImage(bi, 0, 0, null, null);
bi=GraphicTools.cropToSize(bufImage.getWidth(), bufImage.getHeight(), bufImage);
GraphicTools.saveImageToDisk( bi, posterFilename);
}
createPoster(posterPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forcePosterOverwrite);
System.out.println("Hebrew Poster Found\n");
} else { // if no poster found go for DVD COVER
sb2 = new StringBuffer("http://www.sub-baba.com/site/search.php?submit=%E7%F4%F9&type=2&search=");
sb2.append(URLEncoder.encode(MovieTITLE, "UTF-8"));
content2 = request2(new URL(sb2.toString()));
indexMovieLink2 = content2.indexOf("<a href="poco.php?Id=");
//System.out.println(indexMovieLink2+"3\n");
if (indexMovieLink2 != -1) {
finMovieUrl2=content2.substring(indexMovieLink2+21, content2.indexOf(""><img src",indexMovieLink2));
String cover = "<img src="thumbs/"+finMovieUrl2+".Cover.Heb.jpg" width=";
int indexCover = content2.indexOf(cover,indexMovieLink2);
if (indexCover == -1) {
indexMovieLink2 = content2.indexOf("<a href="poco.php?Id=",indexMovieLink2+1);
if (indexMovieLink2 != -1) {
finMovieUrl2=content2.substring(indexMovieLink2+21, content2.indexOf(""><img src",indexMovieLink2));
}
}
//System.out.println(finMovieUrl2+"\n");
subbabaPosterURL="http://www.sub-baba.com/site/download.php?id="+finMovieUrl2+"&type=2";
content2 = request2(new URL(subbabaPosterURL));
indexMovieLink2 = content2.indexOf("<img src="");
finMovieUrl2=content2.substring(indexMovieLink2+10, content2.indexOf("" width=", indexMovieLink2));
subbabaPosterURL="http://www.sub-baba.com/site/"+finMovieUrl2;
// download the poster
String posterFilename = tempJukeboxRoot + File.separator + movie.getPosterFilename();
File posterFile = new File(posterFilename);
if ( !posterFile.exists() ){ // if user put his own poster DONT download poster
downloadPoster2(posterFile, subbabaPosterURL);
}
BufferedImage bi=GraphicTools.loadJPEGImage(new FileInputStream(posterFile));
BufferedImage bufImage = new BufferedImage(bi.getWidth()/2-35, bi.getHeight()+80, BufferedImage.TYPE_INT_RGB);
bufImage.createGraphics().drawImage(bi, 0, 0, null, null);
bi=GraphicTools.cropToSize(bufImage.getWidth(), bufImage.getHeight(), bufImage);
GraphicTools.saveImageToDisk( bi, posterFilename);
createPoster(posterPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forcePosterOverwrite);
System.out.println("Hebrew Poster Found\n");
}
}}}}
// now download hebrew thumbs from sratim.co.il
int len=address.length();
String SratimThumb= "http://www.sratim.co.il/movies/images/"+address.substring(address.indexOf("?id=")+4,len)+".jpg";
String posterFilename = tempJukeboxRoot + File.separator + movie.getPosterFilename();
File posterFile = new File(posterFilename);
downloadPoster2(posterFile, SratimThumb);
//createPoster(posterPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forcePosterOverwrite);
createThumbnail(thumbnailPlugin, jukeboxDetailsRoot, tempJukeboxRoot, skinHome, movie, forceThumbnailOverwrite);
tempJukeboxRoot = "./temp";
tempJukeboxDetailsRoot = tempJukeboxRoot + File.separator ;
tempJukeboxDetailsRootFile = new File(tempJukeboxDetailsRoot);
if (tempJukeboxDetailsRootFile.exists()) {
//Clean up
File[] isoList = tempJukeboxDetailsRootFile.listFiles();
for (int nbFiles=0;nbFiles<isoList.length;nbFiles++)
isoList[nbFiles].delete();
tempJukeboxDetailsRootFile.delete();
}
posterFile.delete();
- Itay_Pollak
- חבר במועדון ה-15K

- תגובות: 19136
- הצטרף: אוקטובר 2005
- שם מלא: איתי פולק
- מיקום: הולנד
- נתן תודות: 725 פעמים
- קיבל תודות: 733 פעמים
הבעייה היא שאני לא יודע כמה אנשים משתמשים MYHOME...
שלא לדבר על הג'וקבוקס
הרי בתכלס - מי שרואה לבד בבית - בלי לארח - אין לו סיבה ממשית להתעסק עם כל השטויות האלה.
שלא לדבר על הג'וקבוקס
הרי בתכלס - מי שרואה לבד בבית - בלי לארח - אין לו סיבה ממשית להתעסק עם כל השטויות האלה.

