Page 1 of 2

Youtube Mod 0.1 Bèta

PostPosted: Fri Nov 11, 2011 6:54 pm
by Qbix
Hi All,

This is the first official release of a Youtube search script I've used/changed to fit (my) Subsonic needs.
It's using drag & drop technics and even contains a working playlist option.

Below you can find a screenshot and instructions on how to install this mod.

Screen:
Image

BACKUP ALL FILES IN YOUR SUBSONIC FOLDER!

To install this mod your first need to stop the subsonic service.
Now you need to change one file.

Open the file "\subsonic\jetty\2361\webapp\WEB-INF\jsp\top.jsp"
In this file find:
Code: Select all
<td style="min-width:4em;padding-right:1.5em">
   <a href="nowPlaying.view?" target="main"><img src="<spring:theme code="nowPlayingImage"/>" title="${nowPlaying}" alt="${nowPlaying}"></a><br>
        <a href="nowPlaying.view?" target="main">${nowPlaying}</a>
</td>

Below that add:
Code: Select all
<td style="min-width:4em;padding-right:1.5em">
        <a href="/youtube/index.html" target="main"><img src="../icons/youtube.png" height="22" width="22"></a><br>
        <a href="/youtube/index.html" target="main">Youtube</a>
</td>


Now you need to extract Youtube.rar in your \subsonic\jetty\2361\webapp\ folder.
If everything goes well it would not ask you to overwrite any files. If it does, please contact me.

Please start your subsonic service again, clean your temp. internet files and enjoy your new Youtube search.

I can use some feedback so please let me all know what you think of it. A couple of things I'm still working on are:

- In fullscreen the controls are not always working
- Drag & Drop needs a throw function IMO
- Users must be able to customize table sizes and table order to fit their own needs


Cheers,
Q

Re: Youtube Mod 0.1 Bèta

PostPosted: Sat Nov 12, 2011 10:23 am
by SeR
It works marvelously at the moment. Thank you Qbix.

Re: Youtube Mod 0.1 Bèta

PostPosted: Sat Nov 12, 2011 12:18 pm
by Qbix
You're welcome, if you run into anything just let me know...I will work on the issues mentioned above and I'll release a 0.1 final soon 8)

Re: Youtube Mod 0.1 Bèta

PostPosted: Tue Jan 24, 2012 4:12 pm
by rfunderburk
I love this mod.

I'm trying to switch the Youtube Feed to show just "Official" "Music" videos. I've spent hours researching this and have landed http://code.google.com/apis/youtube/2.0/developers_guide_protocol_video_feeds.html

But none that I've tried have worked, it leaves the entire 50 random video section blank. What line in the index.html would one need to replace to get a category like Music, etc... instead of "Most Recent"?

Also I would like to switch from 3 videos wide to 2. Which section would one need to mod for that.

Thanks for any assistance & this great mod.

I have switched the background to black & the font's to white to match my theme as well. Along with the icon to closer match my theme. If you do not mind & others are interested I will happily share.

Re: Youtube Mod 0.1 Bèta

PostPosted: Tue Jan 24, 2012 8:38 pm
by muiz
black looks nice, please share :)

Re: Youtube Mod 0.1 Bèta

PostPosted: Tue Jan 24, 2012 10:44 pm
by rfunderburk
Edited \subsonic\jetty\2361\webapp\index.html

The original index.html

Background sections:
Line
637 background: #EFEFEF;
675 background: #EFEFEF;
686 background: #EFEFEF;
713 background: #EFEFEF;
732 background: #EFEFEF;

Edited to show:
637 background: #000000;
675 background: #000000;
686 background: #000000;
713 background: #000000;
732 background: #000000;

Fonts:
Line
639 color: #000000;
648 color: #000000;
655 color: #000000;

Edited to show:
639 color: #FFFFFF;
648 color: #FFFFFF;
655 color: #FFFFFF;

You can change the background & fonts to any color of your choosing by using http://drpeterjones.com/colorcalc/ and replacing the 6 digits of Hexadecimal above #000000 or #FFFFFF

I'm going to attach the index.html, which you can swap with the original (if you would like it removed Qbix) just let me know.
-Download Index.zip
-Unzip to \subsonic\jetty\2361\webapp\youtube\
-When prompted replace the original (make a backup of the original)
-Stop the Subsonic Control Panel Service
-Restart the Subsonic Control Panel Service
-Clear the browers cache'
-Log back in.

Re: Youtube Mod 0.1 Bèta

PostPosted: Wed Jan 25, 2012 11:47 am
by muiz
thx i will try

Re: Youtube Mod 0.1 Bèta

PostPosted: Wed Jan 25, 2012 5:42 pm
by muiz
Niceeeee, thx !

Re: Youtube Mod 0.1 Bèta

PostPosted: Sat Jan 28, 2012 6:05 pm
by Hellscream
AAAAAAA Awesome m8 GZ i love this.

Re: Youtube Mod 0.1 Bèta

PostPosted: Wed Feb 08, 2012 10:27 am
by text
Nice.

Is this one of those mods that's going to need frequent updates because of how YouTube will change their design often?

Re: Youtube Mod 0.1 Bèta

PostPosted: Thu Feb 16, 2012 9:35 pm
by Hellscream
Qbix wrote:Hi All,

This is the first official release of a Youtube search script I've used/changed to fit (my) Subsonic needs.
It's using drag & drop technics and even contains a working playlist option.

Below you can find a screenshot and instructions on how to install this mod.

Screen:
Image

BACKUP ALL FILES IN YOUR SUBSONIC FOLDER!

To install this mod your first need to stop the subsonic service.
Now you need to change one file.

Open the file "\subsonic\jetty\2361\webapp\WEB-INF\jsp\top.jsp"
In this file find:
Code: Select all
<td style="min-width:4em;padding-right:1.5em">
   <a href="nowPlaying.view?" target="main"><img src="<spring:theme code="nowPlayingImage"/>" title="${nowPlaying}" alt="${nowPlaying}"></a><br>
        <a href="nowPlaying.view?" target="main">${nowPlaying}</a>
</td>

Below that add:
Code: Select all
<td style="min-width:4em;padding-right:1.5em">
        <a href="/youtube/index.html" target="main"><img src="../icons/youtube.png" height="22" width="22"></a><br>
        <a href="/youtube/index.html" target="main">Youtube</a>
</td>


Now you need to extract Youtube.rar in your \subsonic\jetty\2361\webapp\ folder.
If everything goes well it would not ask you to overwrite any files. If it does, please contact me.

Please start your subsonic service again, clean your temp. internet files and enjoy your new Youtube search.

I can use some feedback so please let me all know what you think of it. A couple of things I'm still working on are:

- In fullscreen the controls are not always working
- Drag & Drop needs a throw function IMO
- Users must be able to customize table sizes and table order to fit their own needs


Cheers,
Q

you can also change this
Code: Select all
<td style="min-width:4em;padding-right:1.5em">
        <a href="/youtube/index.html" target="main"><img src="../icons/youtube.png" height="22" width="22"></a><br>
        <a href="/youtube/index.html" target="main">Youtube</a>
</td>

to this
Code: Select all
<td style="min-width:4em;padding-right:1.5em">
        <a href="/youtube/index.html" target="main"><img src="<spring:theme code="youtubeImage"/>" title="${youtube}" alt="${youtube}"></a><br>
        <a href="/youtube/index.html" target="main">${youtube}</a>

than edit ResourceBundle.properties and ResourceBundle_en.properties location for this file is (\subsonic\jetty\2583\webapp\WEB-INF\classes\net\sourceforge\subsonic\i18n\) add this line
Code: Select all
top.youtube = Youtube
in bouth files.
Than edit default.properties location for this file is (:\subsonic\jetty\2583\webapp\WEB-INF\classes\net\sourceforge\subsonic\theme\) and add
Code: Select all
youtubeImage = icons/youtube.png

Re: Youtube Mod 0.1 Bèta

PostPosted: Fri Feb 17, 2012 4:11 am
by rfunderburk
@Hellscream, what will those changes do for this mod? Thanks

Re: Re: Youtube Mod 0.1 Bèta

PostPosted: Wed Feb 22, 2012 11:42 am
by Hellscream
rfunderburk wrote:@Hellscream, what will those changes do for this mod? Thanks

in original code u manualy set size of the icon in top.jsp with this code i post size of the icon is determen by the real size of the icon file u have in icon follder

Sent from my GT-P7500 using Tapatalk

Re: Youtube Mod 0.1 Bèta

PostPosted: Mon Mar 12, 2012 9:13 am
by siGh
An excellent mod! It installed exactly as instructed, and works like a charm :) Keep up the great work

Re: Youtube Mod 0.1 Bèta

PostPosted: Mon Apr 16, 2012 12:03 pm
by snoopyp
What version do you use?
Link http://www.uniper.nl/youtube.rar doesn't work...

Thanks