Uname:Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 103.243.232.44  /  Your IP : 216.73.216.187
Web Server : LiteSpeed
System : Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User : iamakash ( 1400)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib64/totem/plugins/dbus/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/totem/plugins/dbus/__pycache__/dbusservice.cpython-39.opt-1.pyc
a

җea�7�@svddlZddlmZmZmZddlZddlZddlmZe�	d�ejZ
Gdd�dejej�Z
Gdd�dejj�ZdS)	�N)�GObject�Peas�Totem)�
DBusGMainLoop�totemc@s6eZdZdZejejd�Zdd�Zdd�Z	dd�Z
dS)	�DbusService)�typecCstj�|�d|_dS�N)r�Object�__init__�root��self�r�,/usr/lib64/totem/plugins/dbus/dbusservice.pyr'szDbusService.__init__cCs0tdd�tjjdt��d�}t||j�|_dS)NT)Zset_as_defaultzorg.mpris.MediaPlayer2.totem)Zbus)r�dbus�serviceZBusNameZ
SessionBus�Root�objectr)r�namerrr�do_activate,s

�zDbusService.do_activatecCs|j��dSr	)r�
disconnectr
rrr�
do_deactivate3szDbusService.do_deactivateN)�__name__�
__module__�__qualname__Z__gtype_name__r�propertyr
rrrrrrrrr"s
rc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zej
jejddd�dd��Zej
jejddd�dd��Zej
jejdd�dd��Zej
jejd d!�d"d#��Zej
jd$d%d%d�d&d'��Zej
jd$d%d%d�d(d)��Zej
jd*d%d%d�d+d,��Zej
jd*d%d%d�d-d.��Zej
jd*d%d%d�d/d0��Zej
jd*d%d%d�d1d2��Zej
jd*d%d%d�d3d4��Zej
jd*d%d%d�d5d6��Zej
jd*d7d%d�d8d9��Zej
jd*d:d%d�d;d<��Zej
jd*dd%d�d=d>��Zej
jd*d7d!�d?d@��Z dAS)Brc	Cs�tjj�||d�||_ddddddddd�|_|j��|_d|_|�	d|j
�|�	d|j�|�	d|j�|�	d|j
�|�	d	|j�dS)
Nz/org/mpris/MediaPlayer2�)Zyear�tracknumber�location�title�album�timeZgenre�artistrzmetadata-updatedznotify::playingznotify::seekableznotify::current-mrlznotify::current-time)rrr
rr�
null_metadata�copy�current_metadata�current_positionZconnect�_Root__do_update_metadata�_Root__do_notify_playing�_Root__do_notify_seekable�_Root__do_notify_current_mrl�_Root__do_notify_current_time)rrrrrrr8s�z
Root.__init__cCsj|j�|j�|j�|j�|j�|j�|j�|j�|j�|j�|�|jdddd�|�dd�dS)Nrr)rZdisconnect_by_funcr,r+r*r)r(Zremove_from_connectionr
rrrrJszRoot.disconnectcCs |j��rdS|j��rdSdS)NZPlayingZPausedZStopped)r�
is_playingZ	is_pausedr
rrrZ__calculate_playback_statusUs


z Root.__calculate_playback_statuscCs�tj|jjjdd�tj|jjjddd�d�}|jddkrTtj|jddd�|d<|jddkr|tj|jdgdd�|d	<|jd
dkr�tj|jd
dd�|d<|jddkr�tj	|jddd�|d
<|S)N�)Z
variant_level��)z
mpris:trackidzmpris:lengthr rzxesam:titler#zxesam:artistr!zxesam:albumrzxesam:trackNumber)
r�Stringr�props�current_mrl�Int64�
stream_lengthr&ZArrayZInt32)r�metadatarrrZ__calculate_metadata\s2���
�
�

�

�
zRoot.__calculate_metadatacCs^|j��|_|r||jd<|r(||jd<|r6||jd<|rD||jd<|�dd|��ig�dS)Nr r#r!r�org.mpris.MediaPlayer2.Player�Metadata)r$r%r&�PropertiesChanged�_Root__calculate_metadata)r�_r#r r!ZnumrrrZ__do_update_metadataws



�zRoot.__do_update_metadatacCs|�dd|��ig�dS)Nr6�PlaybackStatus)r8� _Root__calculate_playback_status�rr:ZproprrrZ__do_notify_playing�s�zRoot.__do_notify_playingc	CsR|�d|jjjdu|jjjdu|jjjduo4|jjj|j��|j��d�g�dS)Nr6)�CanPlay�CanPause�CanSeek�	CanGoNext�
CanGoPrevious)r8rr1r2�seekable�
can_seek_next�can_seek_previousr=rrrZ__do_notify_current_mrl�s��zRoot.__do_notify_current_mrlcCs*|�dd|jjjduo|jjjig�dS)Nr6r@)r8rr1r2rCr=rrrZ__do_notify_seekable�s��zRoot.__do_notify_seekablecCs6t|jj|j�dkr(|�|jjd�|jj|_dS)N�r/)�absr1�current_timer'�Seeked)rrr:rrrZ__do_notify_current_time�szRoot.__do_notify_current_time�ss�v)�dbus_interface�in_signatureZ
out_signaturecCs|�|�|Sr	)�GetAll)r�interface_name�
property_namerrr�Get�szRoot.Get�sza{sv}cCs�|dkr,dddd|jj|j��|j��d�S|dkr�|j�tjj�rJd}nd}|��|d	d	d	|�	�|j�
�t�|jj
jd
�|j��|j��|jj
jdu|jj
jdu|jj
jduo�|jj
jdd�Stj�dtd
�|��dS)N�org.mpris.MediaPlayer2TFZVideos)ZCanQuitZCanRaiseZHasTrackListZIdentityZDesktopEntryZSupportedUriSchemesZSupportedMimeTypesr6�Playlist�Noneg�?r/)r;�
LoopStatus�RateZMinimumRateZMaximumRater7�VolumeZPositionrArBr>r?r@Z
CanControl�'org.mpris.MediaPlayer2.UnknownInterface�AThe MediaPlayer2 object does not implement the ‘%s’ interface)rZapplication_idZget_supported_uri_schemesZget_supported_content_typesZremote_get_settingr�
RemoteSetting�REPEATr<r9Z
get_volumerr3r1rHrDrEr2rC�
exceptions�
DBusExceptionr:)rrOZloop_statusrrrrN�sF�
���zRoot.GetAllZssv)rLrMcCs�|dkrtj�dtd���|dkrv|dkrB|j�tjj|dk�n|dkrLn|dkr`|j�	|�tj�dtd	�|��tj�d
td�|��dS)NrSz'org.mpris.MediaPlayer2.ReadOnlyPropertyu'The property ‘%s’ is not writeable.r6rVrTrWrXu=Unknown property ‘%s’ requested of a MediaPlayer 2 objectrYrZ)
rr]r^r:rZremote_set_settingrr[r\Z
set_volume)rrOrPZ	new_valuerrr�Set�s4������zRoot.Setzsa{sv}as)rLZ	signaturecCsdSr	r)rrOZchanged_propertiesZinvalidated_propertiesrrrr8�szRoot.PropertiesChangedrSrcCs|j��}|��dSr	)rZget_main_windowZpresent)rZmain_windowrrr�Raise�s
z
Root.RaisecCs|j��dSr	)r�exitr
rrr�Quitsz	Root.Quitr6cCs|j��dSr	)rZ	seek_nextr
rrr�Nextsz	Root.NextcCs|j��dSr	)rZ
seek_previousr
rrr�Previous
sz
Root.PreviouscCs|j��dSr	)r�pauser
rrr�Pausesz
Root.PausecCs|j��dSr	)rZ
play_pauser
rrr�	PlayPauseszRoot.PlayPausecCs|j��dSr	)r�stopr
rrr�Stopsz	Root.StopcCs*|j��s|jjjdurdS|j��dSr	)rr-r1r2Zplayr
rrr�Play%sz	Root.Play�xcCs|j�|dd�dS)Nr/F)rZ
seek_relative)r�offsetrrr�Seek0sz	Root.SeekZoxcCs4|d}|dks||jjjkr"dS|j�|d�dS)Nr/rF)rr1r4Z	seek_time)rr:�positionrrr�SetPosition6szRoot.SetPositioncCs|j�|dd�dS)NT)rZadd_to_playlist)rZurirrr�OpenUriBszRoot.OpenUricCsdSr	r)rrnrrrrIHszRoot.SeekedN)!rrrrrr<r9r(r)r+r*r,rr�methodZPROPERTIES_IFACErQrNr_�signalr8r`rbrcrdrfrgrirjrmrorprIrrrrr7s�

�

�
*
�

�
�
�
�
�
�
�
�
�
�
�
	�
�r)�gettextZ
gi.repositoryrrrrZdbus.serviceZdbus.mainloop.glibr�
textdomainr:r
ZActivatablerrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit