# README

## Prelude

85% of user will never read this doc, if they have any probleme they will ask in your forum "wha dis shit doant woerk,bro!\nhalp me!"
i wrote this readme in english (and in don't speek it very well) to explain why all i've done was done and the opposite.

## Note

Since PSPtube was out (a long long time ago) they got a wonderful coder to keep it up to date (sofiaCat>JK109>etc...)
But ... all of them are human human human after all, and can't do this work all they life ! so another dev continue etc...
Finaly i'm one of them, i'm aware that i'll be not ever able to keep it up to date, so why continue ? why recode Youtube.js and other script ?
In my humble opinion the missing dev is ... you, yes i'm serious, you think you can't repear a script, i think you can.
That why i've added a online updater to GoTube, you can make you own script, upload it on your repository and i'll add your repository to the GoTube updateur
If a user find a probleme he juste have to say it on your forum and you'll be able to repair it upload it, and user get them by the updater module
You'll say me "but i dunno how make a script !" and "what is a repository ?"
If you have already used JavaScript i can explain you how PSPtube work in the API chapter
> About the cfg.js : favorites are now in /VIDEO/ in case of MP4 download, if PSPtube can play it, you can try with the XMB ;)
ScreenZoom : 0=original;1=fullScreen;2~14=stretched;
MultiView : true=display a list of the next site;false=display only the current site;
> About the prx : mediaengine.prx : allow PSPtube to use the MediaEngine chipset (use less CPU, but work only with AVC/AAC/MP3/AT3) dvemgr.prx : allow PSPtube to display in 720*480 if the video is on a TV

## ChangeLog

all change are from PSPtube, not from Ultimate PSPtube

1.0
- added GoTube Updater : scan *.js in the site/ folder, load a online page and compare the site.rev
- added attribut : PSPtube.MultiView [true|false] display the next search site in the top of screen
- removed function site.search replaced by info.URL , used by eval(info.URL). Syntax is harder to understand but finaly more powerful.

1.1
- added HightMemory Mod work with the "ms0:/PSP/GAME/GoTube/" confuguration, to desactiveate HMM delete EBOOT.PBP , rename GT into EBOOT.PBP
- added repository support to GoTube Updater
- added function ext(from[,to])
- modded some char* path, now in relat

# API

lengend : object var function array

Site
rev
SearchDesc
Name
Search
| >> | result
total
start
end
VideoInfo
video
Title
Description
CommentCount
LengthSeconds
Tags
ThumbnailURL
RatingAvg
RatingCount
MylistCount
ViewCount
LengthSeconds
UploadTime
SaveFilename
attr
URL
| etc | . | . | .
|  | ### Operating mode I'll try to explain you the operating mode of PSPTube this operating mode is hardcoded to the hombrew and can't be changed. 1. Load config.js (cfg.js for GoTube) We define all init variable in this file (the siteListe array) 2. Load all files in the "system/site" folder ("site" for GoTube) Theoretically each file puch his created site object in the siteList 3. Load "system/site_man.js" ("site.js" for GoTube) Here we can add the 3 CallGates and some final function used before the first CallGate_GetSiteLis(). 4. CallGate_GetSiteList() PSPtube call this function who must return him the list of all the site object (remember ? the siteListe array ?) 5. CallGate_SearchSite(keyword,page) Called when you start a search on a site, it will load the site.Search function, give it the keywords and the page, and wait for a result object in answer 6. CallGate_VideoURLResolver(url) Called when you click on a result. The video.URL string will be executed (eval) and must finaly return the URL of the flv ### Updating mode GoTube 1.0 integrate a new feature, a online updater 1. Load local file "PSP/GAME/GoTube/site" That why you can't change Gotube's directory 2. Get the Repository list get from a list of GoTube's repository, if you want add your repository to the list contact me moc.liamg@ettevercalaettocsib or send me a PM on PSPgen/mfor. Each dev can register up to 2 repository for exemple :alpha/and/release, or safe/and/NSFW etc... 3. Load online file from Repository GoTube load the repository page, supported page are code.google SVN,apache directory listing, and maybe other primary directory listing 4. Save .js file Use a generated XPD file to download .js file in the "PSP/GAME/GoTube/site" folder (the bold part is non-modifiable). that why GoTube dosen't support the GameCategorie plugin.