Mercurial > audlegacy-plugins
comparison src/scrobbler/plugin.c @ 364:50347c06ec68 trunk
[svn] - make scrobbler behave better
- put xspf check back in configure.ac (oops)
| author | nenolod |
|---|---|
| date | Mon, 11 Dec 2006 06:07:12 -0800 |
| parents | 958855dae693 |
| children | 1d50eb0b5a0a |
comparison
equal
deleted
inserted
replaced
| 363:958855dae693 | 364:50347c06ec68 |
|---|---|
| 99 pdebug("username/password not found - not starting last.fm support", | 99 pdebug("username/password not found - not starting last.fm support", |
| 100 DEBUG); | 100 DEBUG); |
| 101 sc_going = 0; | 101 sc_going = 0; |
| 102 } | 102 } |
| 103 else | 103 else |
| 104 { | |
| 104 sc_init(username, password); | 105 sc_init(username, password); |
| 105 | 106 |
| 106 g_free(username); | 107 g_free(username); |
| 107 g_free(password); | 108 g_free(password); |
| 109 } | |
| 108 | 110 |
| 109 if ((!ge_username || !ge_password) || (!*ge_username || !*ge_password)) | 111 if ((!ge_username || !ge_password) || (!*ge_username || !*ge_password)) |
| 110 { | 112 { |
| 111 pdebug("username/password not found - not starting Gerpok support", | 113 pdebug("username/password not found - not starting Gerpok support", |
| 112 DEBUG); | 114 DEBUG); |
| 113 ge_going = 0; | 115 ge_going = 0; |
| 114 } | 116 } |
| 115 else | 117 else |
| 118 { | |
| 116 gerpok_sc_init(ge_username, ge_password); | 119 gerpok_sc_init(ge_username, ge_password); |
| 117 | 120 |
| 118 g_free(ge_username); | 121 g_free(ge_username); |
| 119 g_free(ge_password); | 122 g_free(ge_password); |
| 123 } | |
| 120 | 124 |
| 121 if ((!ha_username || !ha_password) || (!*ha_username || !*ha_password)) | 125 if ((!ha_username || !ha_password) || (!*ha_username || !*ha_password)) |
| 122 { | 126 { |
| 123 pdebug("username/password not found - not starting Hatena support", | 127 pdebug("username/password not found - not starting Hatena support", |
| 124 DEBUG); | 128 DEBUG); |
| 125 ha_going = 0; | 129 ha_going = 0; |
| 126 } | 130 } |
| 127 else | 131 else |
| 132 { | |
| 128 hatena_sc_init(ha_username, ha_password); | 133 hatena_sc_init(ha_username, ha_password); |
| 129 | 134 |
| 130 g_free(ha_username); | 135 g_free(ha_username); |
| 131 g_free(ha_password); | 136 g_free(ha_password); |
| 137 } | |
| 132 | 138 |
| 133 m_scrobbler = g_mutex_new(); | 139 m_scrobbler = g_mutex_new(); |
| 134 hs_mutex = g_mutex_new(); | 140 hs_mutex = g_mutex_new(); |
| 135 xs_mutex = g_mutex_new(); | 141 xs_mutex = g_mutex_new(); |
| 136 hs_cond = g_cond_new(); | 142 hs_cond = g_cond_new(); |
