On 8月2日, 下午6时37分, 润良 马 <billno...@gmail.com> wrote:
> 这个主要用来记录一些开发动态和相关的信息,其实目前看来用途还不算特别的大,因为我的开发速度、时间、精力、能力实在有限,这个项目也是只有
> 我一个人知道,基本等于无人问津......
详细的说一下计划1:
界面上要有五行歌词,自动载入(当没有歌词时,可以直接弹出一个框显示没有歌词……)一行结束换一行,其中一行的字体设置与别的不同,使得这一
行可以突出显示,作为当前行,所以要有一个时间工具,不断的获取播放的歌词的时间,用来同步歌词
On 8月2日, 下午8时38分, 润良 马 <billno...@gmail.com> wrote:
> 不过感觉google的论坛反应速度严重值得怀疑
wiki这东西,我到现在也没真正搞懂……
On 8月5日, 下午4时55分, BillMa <billno...@gmail.com> wrote:
> 收集一些有用的网址
> ExaileAPIhttp://exaile.org/wiki/ExaileAPI
> 官网http://exaile.org
> LaunchPadhttps://bugs.launchpad.net/exaile
def start(self):
"""
Starts the timer
"""
self.connect_id = gobject.timeout_add(self.time, self.notify)
def stop(self):
"""
Stops the timer
"""
if not self.connect_id: return
gobject.source_remove(self.connect_id)
self.connect_id = None
def notify(self):
"""
Called when the timer time has elapsed
"""
self.func()
if self.runonce: return False
else: return True
gui.main中有使用self.timer = xlmisc.MiscTimer(self.timer_update, 1000)
def timer_update(self, event=None):
"""
Fired every half second.
Updates the seeker position, the "now playing" title, and
submits the track to last.fm when appropriate
"""
status_text = ""
track_count = len(self.songs)
if track_count:
#TRANSLATORS: Number of tracks in the playlist
status_text += _("%d showing") % track_count
total_time = self.songs.get_total_length()
if total_time:
status_text += " (" + total_time + ")"
status_text += ", "
#TRANSLATORS: Number of tracks in the collection
status_text += _("%d in collection") % len(self.all_songs)
self.status.set_track_count(status_text)
track = self.player.current
self.rewind_track += 1
if track is None:
return True
duration = track.duration
# update the progress bar/label
value = self.player.get_current_position()
if duration == -1:
real = 0
else:
real = value * duration / 100
seconds = real
if not self.seeking and not self.player.is_paused():
self.new_progressbar =
self.xml.get_widget('new_progressbar')
fraction = value / 100
if fraction > 1: fraction = 1
self.new_progressbar.set_fraction(fraction)
if track.type == 'stream':
if track.start_time and self.player.is_playing():
seconds = time.time() - track.start_time
self.new_progressbar.set_text("%d:%02d" % # TODO:
i18n
(seconds // 60, seconds % 60))
else:
remaining_seconds = duration - seconds
self.new_progressbar.set_text("%d:%02d / %d:%02d" % #
TODO: i18n
(seconds // 60, seconds % 60,
remaining_seconds // 60, remaining_seconds % 60))
if not self.player.is_paused():
self.submit_time_played += 1
self.emit('timer_update')
return True
下一步想增加一些Mp3文件改名功能(这个在千千静听里也有)
On 8月21日, 下午9时11分, BillMa <billno...@gmail.com> wrote:
> 一切都已静止,等待新的爆发
再这样自己写下去可能永远写不出理想的程序,我的技术实在有点次了……而且也没有时间……
Exaile0.3发布很久了,昨天正式的用了一下,发现连个插件的选项都没有……突然更有一种无从下手的感觉……看来马上开发0.3上的插件是不太好
办了……
有几个计划:歌词功能的设置、更多的歌词源、可读性更强的代码
今天最大的进步是放弃用0.n方式来标记版本,改用日期,0.n实在没法控制……