File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ void hp_submit(void)
297
297
track -> album = NULL ;
298
298
}
299
299
300
- void hp_love (bool on )
300
+ void hp_love_current (bool on )
301
301
{
302
302
for (unsigned i = 0 ; i < G_N_ELEMENTS (services ); i ++ ) {
303
303
struct service * s = & services [i ];
@@ -307,6 +307,16 @@ void hp_love(bool on)
307
307
}
308
308
}
309
309
310
+ void hp_love (const char * artist , const char * title , bool on )
311
+ {
312
+ for (unsigned i = 0 ; i < G_N_ELEMENTS (services ); i ++ ) {
313
+ struct service * s = & services [i ];
314
+ if (!s -> on )
315
+ continue ;
316
+ sr_session_love (s -> session , artist , title , on );
317
+ }
318
+ }
319
+
310
320
void hp_stop (void )
311
321
{
312
322
for (unsigned i = 0 ; i < G_N_ELEMENTS (services ); i ++ ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ extern "C" {
17
17
void hp_init (void );
18
18
void hp_deinit (void );
19
19
void hp_submit (void );
20
- void hp_love (bool on );
20
+ void hp_love_current (bool on );
21
+ void hp_love (const char * artist , const char * title , bool on );
21
22
void hp_stop (void );
22
23
void hp_next (void );
23
24
You can’t perform that action at this time.
0 commit comments