This file is indexed.

/usr/share/pyshared/kdj/muxer.py is in libkate-tools 0.4.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import sys
import os

from tools import Tools
from finder import FindKateStreams

class Muxer:
  def __init__(self,tools,filename,directory,type):
    self.directory=directory
    self.Mux(tools,filename,type)

  def EncodeKateStream(self,tools,kate_stream,type):
    filename=kate_stream['filename']
    params=[]
    params+=['-t',type]
    params+=['-o',filename+'.ogg']
    params+=[filename]
    params+=['-l',kate_stream['language']]
    params+=['-c',kate_stream['category']]
    params+=['-s',kate_stream['serial']]
    tools.run_kateenc(params)

  def Mux(self,tools,filename,type):
    kate_streams=FindKateStreams(self.directory)

    params=[]
    params+=['-o',filename,os.path.join(self.directory,'misc.ogg')]
    for idx in kate_streams:
      kate_stream=kate_streams[idx]
      self.EncodeKateStream(tools,kate_stream,type)
      params+=[kate_stream['filename']+'.ogg']
    tools.run_mux(params)

if __name__=='__main__':
  tools=Tools()
  dir='katedj-tmp-extract-8ELIgg'
  if len(sys.argv)>1:
    dir=sys.argv[1];
  muxer=Muxer(tools,'newdemo.ogg',dir)