Topic options
View mode
Newest First
SMTube : new version on OS4Depot
Posted on:
2014/6/2 6:36
#1
Just can't stay away
Joined: 2012/8/14 13:51Last Login
: 1/16 17:31
From France
Group:
Registered Users
SMTube 2.1 svn6227 *
In short, added some switchs to call SMTube from CLI * [AmigaOS4] Fixed the start from CLI by lowering the Stack (???)
* [AmigaOS4] Now, options from CLI are working
APPDIR:SMTube "search string" -lang xx
allows to call SMTube from CLI with a search string and to specify a different language.
ex :
APPDIR:SMTube "AmigaOS X1000" -lang fr * [AmigaOS4] When started by CLI, tabs changes are disabled because it made a CPU loop (???)
* Added a new CLI switch "-url
http://www.youtube.com/watch?v=XXXXXXXX" to directly download a video by his url.
ex :
APPDIR:SMTube -url http://www.youtube.com/watch?v=XXXXXXXX Unfortunately, on AmigaOS, a new SMTube instance will be started for each "-url xxx" request.
The QtSingleApplication.isRunning() function doesn't seems to work to detect if another instance is still running. (Alfkill if you are around ?)
http://os4depot.net/?function=showfile&file=video/play/smtube.lha
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 6:42
#2
Just can't stay away
Joined: 2008/4/10 14:57Last Login
: 11/19 10:53
From Northern Ireland
Group:
Registered Users
Nice job! This project continues to impress me! Thank you.
I nearly headed off to the computer room to download it. Then, sadly I remembered all of my stuff is boxed away! Aarghhhh!!!
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 8:52
#3
Quite a regular
Joined: 2009/6/1 14:11Last Login
: 1/12 16:20
From Germany
Group:
Registered Users
@zzd10h Thank you, i use it very often
Amiga600/Vampire2/PrismaMegaMix/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 10:44
#4
Not too shy to talk
Joined: 2011/11/29 0:54Last Login
: 11/10 1:44
From Norway
Group:
Registered Users
@zzd10h great work, looking forward too test it when im off work.. thank you:)
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 12:46
#5
Home away from home
Joined: 2006/12/2 3:55Last Login
: Yesterday 23:18
From Italy, Perugia
Group:
Registered Users
@zzd10h
Thanks Guillaume
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 13:06
#6
Home away from home
Joined: 2006/11/20 16:26Last Login
: 11/3 19:40
From Norway
Group:
Registered Users
@zzd10h
Quote:
Unfortunately, on AmigaOS, a new SMTube instance will be started for each "-url xxx" request. This can be solved by creating a Amiga MsgPort.
If port found send the URL to running SMTube and quit, if port not found run application like you normally do.
Struct MsgPort * smport ;
BOOL msgport_startup ()
{
Forbid ();
smport = FindPort ( “smtube” );
Permit ();
if ( smport == NULL )
{
smport = AllocSysObject ( ASOT_PORT , ASOPORT_Name , “smtube” , TAG_END );
Return True ;
}
else
{
Return False ;
}
}
void msgport_shutdown ()
{
if ( smport ) FreeSysObject ( smport );
smport = NULL ;
}
void send_msg ( char * value )
{
struct smtube_msg * msg ;
if ( msg = AllocSysObject ( ASOT_MESSAGE , ASOMSG_Size , sizeof ( struct smtube_msg ) , TAG_END ))
{
msg -> opt = strdup ( “ - url” );
msg -> value = strdup ( value );
PutMsg ( smport , msg );
}
}
void get_msg ()
{
struct smtube_msg * msg ;
while ( msg = GetMsg ( smport ))
{
// 1. DO SOME THING
// 2. Then clean up.
free ( msg -> opt );
free ( msg -> value );
ReplyMsg ( msg );
}
}
Edited by LiveForIt on 2014/6/2 20:39:32 Edited by LiveForIt on 2014/6/2 20:47:18 Edited by LiveForIt on 2014/6/2 20:49:38 Edited by LiveForIt on 2014/6/2 23:28:38
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 17:59
#7
Just can't stay away
Joined: 2012/8/14 13:51Last Login
: 1/16 17:31
From France
Group:
Registered Users
@LiveForIt Thank you for the advices. @all, you are welcome.
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 19:24
#8
Home away from home
Joined: 2009/7/7 4:34Last Login
: Today 2:48
From Man Cave, Canada
Group:
Registered Users
ddniQuote:
Nice job! This project continues to impress me! Thank you. I nearly headed off to the computer room to download it. Then, sadly I remembered all of my stuff is boxed away! Aarghhhh!!! + 1 & let me fix that last sentence for you..."then, sadly I remembered all of my stuff is boxes away!
DH0 !
Edited by 328gts on 2014/6/2 21:08:50
_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 20:51
#9
Home away from home
Joined: 2006/11/20 16:26Last Login
: 11/3 19:40
From Norway
Group:
Registered Users
@zzd10h
Quote:
Thank you for the advice. Fixed some errors in example code in case you want to use it.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 21:37
#10
Just can't stay away
Joined: 2008/4/10 14:57Last Login
: 11/19 10:53
From Northern Ireland
Group:
Registered Users
@328gts
LoL
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/2 23:51
#11
Just can't stay away
Joined: 2012/8/14 13:51Last Login
: 1/16 17:31
From France
Group:
Registered Users
@LiveForIt Thanks again, I will investigate / try to implement if somebody find that really useful to start multiples SMTube downloads by CLI. I doubt ;)
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 8:34
#12
Quite a regular
Joined: 2009/6/1 14:11Last Login
: 1/12 16:20
From Germany
Group:
Registered Users
@zzd10h The buttons "Newest" and "most viewed" seems to be broken. I can`t use them in your latest version
Amiga600/Vampire2/PrismaMegaMix/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 8:38
#13
Just can't stay away
Joined: 2012/8/14 13:51Last Login
: 1/16 17:31
From France
Group:
Registered Users
By CLI or in normal way ? If by CLI, it's normal. "* [AmigaOS4] When started by CLI, tabs changes are disabled because it made a CPU loop (???) " Otherwise, in a normal way, it works for me
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 8:43
#14
Quite a regular
Joined: 2009/6/1 14:11Last Login
: 1/12 16:20
From Germany
Group:
Registered Users
@zzd10h Not over CLI I started SMTube over the icon I deleted the old version completly and installed then the new version
Amiga600/Vampire2/PrismaMegaMix/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 9:11
#15
Just can't stay away
Joined: 2012/8/14 13:51Last Login
: 1/16 17:31
From France
Group:
Registered Users
I will recheck this evening Is somebody encounters the same issue with Tabs in "normal" start mode ? Thank you
Edited by zzd10h on 2014/6/3 9:29:07
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 14:12
#16
Just can't stay away
Joined: 2007/10/25 10:21Last Login
: 2022/6/11 0:35
From Gothenburg / Sweden
Group:
Registered Users
Great work, good to have have cli commands to be able to use with web browsers etc.
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 14:49
#17
Just can't stay away
Joined: 2009/10/7 1:11Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
"Most recent" and "most viewed" work as expected here. Maybe there is a settings file somewhere that you didn't delete? Try your Qt home folder.
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/3 20:05
#18
Just can't stay away
Joined: 2012/8/14 13:51Last Login
: 1/16 17:31
From France
Group:
Registered Users
Kicko & Alfkill : Thank you for confirmation, it works well for me too. TommySammy : Are you sure that you use the original .info icon (yours) ? Because, I can reproduce your problem if I use "Shell" as default program instead of predefined "Workbench".
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/4 5:05
#19
Quite a regular
Joined: 2009/6/1 14:11Last Login
: 1/12 16:20
From Germany
Group:
Registered Users
@zzd10h I deleted SM Tube again and deleted from Qt/home/conf/SMTube too. Then i downloaded it again and installed it . I can`t use "Music" and "Sports" "Newest" and "Most Viewed". I use the original icon which are included More tests to do....
Amiga600/Vampire2/PrismaMegaMix/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Re: SMTube : new version on OS4Depot
Posted on:
2014/6/4 18:06
#20
Just can't stay away
Joined: 2007/10/25 10:21Last Login
: 2022/6/11 0:35
From Gothenburg / Sweden
Group:
Registered Users
Nothing happens here when i press on any of the buttons on top like sports, music, and the most buttons.... i tried from the icon (reinstalled)
Currently Active Users Viewing This Thread:
1
(
0 members
and 1 Anonymous Users
)