-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathlocal_conf.py.example
1841 lines (1588 loc) · 62.2 KB
/
local_conf.py.example
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------
# local_conf.py - System configuration
# -----------------------------------------------------------------------
# $Id$
#
# Notes:
#
# This file contains your freevo settings, overriding the settings in
# freevo_config.py. freevo_config.py, which is usually installed in
# /usr/share/freevo, contains all the core settings. To change the settings copy
# this file to ~/.freevo/local_conf.py or /etc/freevo/local_conf.py
#
# It does not contain all the possible settings that you can change, see
# freevo_config.py for all the possible settings. Also it does not contain
# settings for the plug-ins, plug-ins contain their configuration information and
# the can be listed with:
# | freevo plugins -l
# and the settings can se shown with
# | freevo plugins -i <name of plug-in>
#
# E.g.: when you want a alsa as mplayer audio out, just put in local_conf.py:
# | MPLAYER_AO_DEV = 'alsa9'
#
# The vertical line indicates code.
#
# This is no normal config file, it's Python code. Because of that, you
# need to follow some rules to avoid crashes. The examples should explain
# the settings, but make sure a line starting with a variable has NO SPACES OR
# TABS at the beginning.
#
# -----------------------------------------------------------------------
# Freevo - A Home Theater PC framework
# Copyright (C) 2002 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------
CONFIG_VERSION = 5.29
# ======================================================================
# General freevo settings:
# ======================================================================
# LOCALE='iso-8859-15'
# AUDIO_DEVICE = '/dev/dsp' # e.g.: /dev/dsp0, /dev/audio, /dev/alsa/?
# AUDIO_INPUT_DEVICE = '/dev/dsp1' # e.g.: /dev/dsp0, /dev/audio, /dev/alsa/?
# MIXER_MAJOR_CTRL = 'VOL' # Freevo takes control over one audio ctrl
# 'VOL', 'PCM' 'OGAIN' etc.
# MIXER_MAJOR_MUTE_CTRL = 'PCM' # used in alsamixer.py There are systems where
# volume and mute use different controls
# MIXER_DEVICE = '/dev/mixer' # mixer device
# MIXER_CONTROL_ALL = 1 # Should Freevo take complete control of audio
# MIXER_VOLUME_MAX = 90 # Set what you want maximum volume level to be.
# MIXER_VOLUME_DEFAULT = 40 # Set default volume level.
# MIXER_VOLUME_TV_IN = 60 # Set this to your preferred level 0-100.
# MIXER_VOLUME_VCR_IN = 90 # If you use different input from TV
# MIXER_VOLUME_RADIO_IN = 80 # Set this to your preferred level 0-100.
# START_FULLSCREEN_X = 0 # Start in fullscreen mode if using x11 or xv.
# SYS_SHUTDOWN_CONFIRM = 1 # ask before shutdown
#
# Physical ROM drives, multiple ones can be specified
# by adding comma-seperated and quoted entries.
#
# Format [ ('mountdir1', 'devicename1', 'displayed name1'),
# ('mountdir2', 'devicename2', 'displayed name2'), ...]
#
# Set to None to autodetect drives in during startup from /etc/fstab,
# set to [] to disable rom drive support at all
#
# ROM_DRIVES = None
# ROM_DRIVES_AUTOFS = False # Indicates that an automounter daemon is being used.
# Does not try to mount/umount the media.
#
# Hide discs from the wrong menu (e.g. VCDs in audio menu) and empty discs.
#
# HIDE_UNUSABLE_DISCS = 1
#
# Attempt to set the speed of the ROM drive. A good value for keeping the
# drive silent while playing movies is 8.
#
# ROM_SPEED = 0
#
# Perform a whole system shutdown at SHUTDOWN! Useful for standalone boxes.
#
# SYS_SHUTDOWN_ENABLE = 0
#
# Command to execute to shutdown the system
#
# SYS_SHUTDOWN_CMD = "sudo shutdown -h now"
# SYS_RESTART_CMD = "sudo shutdown -r now"
#
# New Style shutdown dialog
#
# True for the new style dialog
# False for the original style dialog
# SHUTDOWN_NEW_STYLE_DIALOG=True
# ======================================================================
# AUTOSHUTDOWN CONFIGURATION
# ======================================================================
# For assistance, read the help with 'freevo plugins -i autoshutdown'
# replace the default shutdown plugin
# plugin.remove('shutdown')
# plugin.activate('autoshutdown', level=90)
# activate the timer
# plugin.activate('autoshutdown.autoshutdowntimer')
# -- autoshutdown menu item configuration --
# AUTOSHUTDOWN_CONFIRM = True
# -- autoshutdown timer configuration --
# AUTOSHUTDOWN_TIMER_TIMEOUT=30
# -- autoshutdown core configuration --
# AUTOSHUTDOWN_PRETEND = False
# AUTOSHUTDOWN_DEFAULT_WAKEUP_TIME = "13:00"
# AUTOSHUTDOWN_FORCE_DEFAULT_WAKEUP = True
# AUTOSHUTDOWN_WAKEUP_TIME_PAD = 180
# AUTOSHUTDOWN_ALLOWED_IDLE_TIME = 45
# AUTOSHUTDOWN_WHILE_USER_LOGGED = True
# AUTOSHUTDOWN_PROCESS_LIST = [
# 'mencoder','transcode','cdrecord',
# 'emerge','tvgids.sh','tv_grab','sshd:'
# ]
# -- autoshutdown process check configuration --
# AUTOSHUTDOWN_PROCESS_CHECK = '/home/user/bin/freevoshutdown_check'
# -- choice of wakeup method --
# AUTOSHUTDOWN_METHOD = None
# AUTOSHUTDOWN_METHOD = 'nvram'
# AUTOSHUTDOWN_METHOD = 'acpi'
# -- autoshutdown acpi-alarm configuration
# AUTOSHUTDOWN_ACPI_CMD = "sudo /PATH/TO/set_acpi.sh"
# -- autoshutdown nvram-wakeup configuration --
# AUTOSHUTDOWN_NVRAM_CMD = "/usr/bin/nvram-wakeup --syslog"
# AUTOSHUTDOWN_BIOS_NEEDS_REBOOT = True
# -- if the bios needs a reboot --
# AUTOSHUTDOWN_BOOT_LOADER = None
# AUTOSHUTDOWN_BOOT_LOADER = "LILO"
# AUTOSHUTDOWN_BOOT_LOADER = "GRUB"
# -- autoshutdown reboot lilo configuration --
# AUTOSHUTDOWN_LILO_CMD = "/sbin/lilo -R PowerOff"
# -- autoshutdown reboot grub configuration --
# AUTOSHUTDOWN_GRUB_CMD = "/sbin/grub-set-default 0"
# AUTOSHUTDOWN_REMOUNT_BOOT_CMD = "/bin/mount /boot -o remount,rw"
# ======================================================================
# Events
# ======================================================================
#
# You can add more keybindings by adding them to the correct hash.
# e.g. If you want to send 'contrast -100' to mplayer by pressing the '1' key,
# just add the following line:
#
# EVENTS['video']['1'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='contrast -100')
#
# See src/event.py for a list of all possible events.
#
# Some events to jump to menus
#
# EVENTS['menu']['GUIDE'] = Event(MENU_GOTO_TVGUIDE) # Not working
# EVENTS['menu']['VIDEOS'] = Event(MENU_GOTO_VIDEOS)
# EVENTS['menu']['MUSIC'] = Event(MENU_GOTO_MUSIC)
# EVENTS['menu']['PICTURES'] = Event(MENU_GOTO_IMAGES)
# EVENTS['menu']['GAMES'] = Event(MENU_GOTO_GAMES)
# EVENTS['menu']['RADIO'] = Event(MENU_GOTO_RADIO) # Not working
# EVENTS['menu']['POWER'] = Event(MENU_GOTO_SHUTDOWN)
#
# Use arrow keys for back and select (alternate way of navigating)
#
# MENU_ARROW_NAVIGATION = False
#
# Process keyboard events from SDL. You want this unless you use only lirc
# or event devices below.
#
# SYS_USE_KEYBOARD = True
#
# Process mouse events from SDL/Pygame. You want this to control Freevo
# with a mouse
#
# SYS_USE_MOUSE = False
#
# Keymap to map keyboard keys to event strings. You can also add new keys
# here, e.g. KEYMAP[key.K_x] = 'SUBTITLE'. The K_-names are defined by pygame.
# Keys can be combined with modifiers like KEYMAP[key.K_x | M_ALT | M_CTRL]
# When pygame doesn't recognize the key pressed it passes just scancode.
# This use to happen to "multimedia" keys. In this case special modifier
# can be used: KEYMAP[scancode | M_SCAN].
#
#
# List of /dev/input/event# devices to monitor. You can specify either the
# device node (e.g. '/dev/input/event1') or the name of the device (e.g.
# 'ATI Remote Wonder II'). If you monitor your keyboard both here and with
# SYS_USE_KEYBOARD, then you will get duplicate events.
#
EVENT_DEVS = []
# Keymap to map input events to event strings. You can change current mappings
# and add new ones here, e.g. EVENTMAP['KEY_COFFEE'] = 'SUBTITLE'. Key names
# are defined by the Linux input layer (input.h). An axis is described by a
# pair, one for positive and one for negative movement, e.g.
#
# EVENTMAP['REL_Z'] = ('LEFT', 'RIGHT')
# Use Internet resources to fetch information?
# For example, Freevo can use CDDB for album information,
# the IMDB movie database for movie info, and Amazon for cover searches.
# Set this to 0 if your computer isn't connected to a network.
#
# SYS_USE_NETWORK = True
# Follow symlinks in media directories
#
# SYS_FOLLOW_SYMLINKS = False
#
# Directory to store temporary files
#
# FREEVO_TEMPDIR = '/tmp'
#
# Directory location to save files when the normal filesystem
# doesn't allow saving. This directory can save covers and fxd files
# for read only filesystems like ROM drives. Set this variable to your
# old MOVIE_DATA_DIR if you have one. It needs to be set to a directory
# Freevo can write to.
#
# OVERLAY_DIR = os.path.join(FREEVO_CACHEDIR, 'vfs')
#
# Umask setting for all files.
# 022 means only the user has write access. If you share your Freevo
# installation with different users, set this to 002
#
# UMASK = 022
#
# Suffix for playlist files
#
# PLAYLIST_SUFFIX = [ 'm3u' ]
#
# Use md5 in mmpython to create unique disc ids. Enable this if you have
# problems with different discs having the same id.
#
# MMPYTHON_CREATE_MD5_ID = 0
#
# Keep metadata in memory
# Setting this variable will keep all cache files in memory. Startup will be
# slower, but for large directories, this will speed up the display.
# 0 = Only keep current dir in memory. Use this if you have too much data
# and not enough RAM
# 1 = Once loaded, keep cachefile for directory in memory
# 2 = Load all cachefiles on startup
#
# WARNING: you should not run 'freevo cache' when freevo is running.
#
# MEDIAINFO_USE_MEMORY = 1
#
# Cache images. This uses a lot of disc space but it's a huge speed
# enhancement. The images will be cached in OVERLAY_DIR
#
CACHE_IMAGES = 1
# ======================================================================
# Plugins:
# ======================================================================
# Remove undesired plugins by setting plugin.remove(code).
# You can also use the name to remove a plugin. But if you do that,
# all instances of this plugin will be removed.
#
# Examples:
# plugin.remove(plugin_tv) or
# plugin.remove('tv') will remove the tv module from the main menu
# plugin.remove(rom_plugins['image']) will remove the rom drives from the
# image main menu,
# plugin.remove('rom_drives.rom_items') will remove the rom drives from all
# menus
#
# See freevo_config.py for a list of loaded plugins
#
# Use ivtv_record instead if you have an ivtv based card (PVR-250/350)
# and want freevo to do everthing for you. TV_SETTINGS must be set
# correctly. To use you need to set the following two lines:
#
# plugin.remove('tv.generic_record')
# plugin_record = plugin.activate('tv.ivtv_record')
#
# Enable this for joystick support:
# plugin.activate('joy')
# ----------------------------------------------------------------------
# Headlines
#
# You are free to use any rss feeds in the HEADLINES_LOCATIONS below
# These are just working examples for the Freevo feeds.
# To turn off Headlines add plugin.remove('headlines')
# ----------------------------------------------------------------------
# plugin.activate('headlines', level=45)
# HEADLINES_LOCATIONS = [
# ('Freevo news releases', 'http://sourceforge.net/export/rss2_projnews.php?group_id=46652'),
# ('Freevo file releases', 'http://sourceforge.net/export/rss2_projfiles.php?group_id=46652'),
# ('Freevo summary+stats', 'http://sourceforge.net/export/rss2_projsummary.php?group_id=46652'),
# ('Freevo donors', 'http://sourceforge.net/export/rss2_projdonors.php?group_id=46652'),
# ]
# ----------------------------------------------------------------------
# Speak using Festival
# ----------------------------------------------------------------------
# Speak plugin to output menu items via festival
# plugin.activate('speak')
# SPEAK_WELCOME = ''
# SPEAK_SHUTDOWN = ''
# ----------------------------------------------------------------------
# CD Ripping
# ----------------------------------------------------------------------
# CD_RIP_TMP_DIR = '/tmp/'
# CD_RIP_TMP_NAME = 'track_%(track)s_being_ripped'
# CD_RIP_PN_PREF = '%(artist)s/%(album)s/%(track)s - %(song)s'
# CD_RIP_CDPAR_OPTS = '-s'
# CD_RIP_LAME_OPTS = '--vbr-new -b 192 -h'
# CD_RIP_OGG_OPTS = '-m 128'
# CD_RIP_FLAC_OPTS = '-8'
# CD_RIP_CASE = None # Can be title, upper, lower
# CD_RIP_REPLACE_SPACE = None # Can be '_', '-', etc.
# ----------------------------------------------------------------------
# CD Burning
# ----------------------------------------------------------------------
# CDBURN_AUDIO_DAO = 1
# CDBURN_MKISOFS_PATH = '/usr/bin/mkisofs'
# CDBURN_CDRECORD_PATH = '/usr/bin/cdrecord'
# CDBURN_TEMP_DIR='/tmp/'
# CDBURN_DEV = '/dev/cdrom'
# CDBURN_SPEED = 32
# ----------------------------------------------------------------------
# Re-encode
# This plug-in transcodes a video to a different format
# ----------------------------------------------------------------------
# plugin.activate('video.reencode')
# REENCODE_CONTAINER = 'avi'
# REENCODE_RESOLUTION = 'Optimal'
# REENCODE_VIDEOCODEC = 'XviD'
# REENCODE_VIDEOBITRATE = 1000
# REENCODE_AUDIOCODEC = 'MPEG 1 Layer 3 (mp3)'
# REENCODE_AUDIOBITRATE = 128
# REENCODE_NUMPASSES = 1
# REENCODE_VIDEOFILTER = None
# ----------------------------------------------------------------------
# Freevo Music Player Daemon
# http://www.musicpd.org/
# ----------------------------------------------------------------------
# plugin.activate('mpd')
# ----------------------------------------------------------------------
# Freevo Bluetooth Phone Settings
# ----------------------------------------------------------------------
# This plugin uses The Python bindings for Bluez bluetooth stack.
#
# It can be downloaded from http://org.csail.mit.edu/pybluez/download.html
# or installed with the package manager of your operating system.
#
# To this plugin to work you need the j2me midlet installed in a compatible
# phone.
#
# plugin.activate('freevused')
# if RFCOMM port is already binded wait this seconds to retry binding
# FVUSED_BIND_TIMEOUT = 30
# Translation of commands from j2me client to events of Freevo
# FVUSED_CMDS = {
# 'PREV': 'UP', # 1st row left
# 'STRT': 'SELECT', # 1nd row center
# 'NEXT': 'DOWN', # 1st row right
# 'RWND': 'LEFT', # 2nd row left
# 'PAUS': 'PAUSE', # 2nd row center
# 'FFWD': 'RIGHT', # 2nd row right
# 'VOL-': 'MIXER_VOLDOWN', # 3rd row left
# 'STOP': 'EXIT', # 3rd row center
# 'VOL+': 'MIXER_VOLUP', # 3rd row right
# 'VOLM': 'MIXER_VOLMUTE', # 4th row left
# 'SLCT': 'ENTER', # 4th row center
# 'MAIN': 'MENU' # 4th row right
# }
# ----------------------------------------------------------------------
# Freevo Button Bar Plug-in
# ----------------------------------------------------------------------
# plugin.activate('buttonbar')
# You'll also need to map the 'RED', 'GREEN', 'YELLOW'
# and 'BLUE' events to keys for example (don't use this
# it overrides some default keys)
# KEYMAP[key.K_F5] = 'RED'
# KEYMAP[key.K_F6] = 'GREEN' #Already mapped to record
# KEYMAP[key.K_F7] = 'YELLOW'
# KEYMAP[key.K_F8] = 'BLUE'
# ----------------------------------------------------------------------
# Freevo Screensaver Plug-in
# ----------------------------------------------------------------------
# SCREENSAVER_DELAY = 120 # of seconds to wait to start saver.
# SCREENSAVER_CYCLE_TIME = 60 # of seconds to run a screensaver before starting another saver.
# plugin.activate('screensaver')
# plugin.activate('screensaver.balls') # Bouncing balls all over the screen
# plugin.activate('screensaver.bouncing_freevo') # The freevo logo bouncing around the screen
# ======================================================================
# Freevo IMDB plugin:
# ======================================================================
# add imdb search to the video item menu
# plugin.activate('video.imdb')
# list of regexp to be ignored on a disc label
# IMDB_REMOVE_FROM_LABEL = ('season[\._ -][0-9]+', 'disc[\._ -][0-9]+',
'd[\._ -][0-9]+', 'german')
# list of regexp to be ignored on a filename, match TV_RECORDMASK
# IMDB_REMOVE_FROM_NAME = ['^[0-9]+-[0-9]+[ _][0-9]+\.[0-9]+[ _]']
# list of words to ignore when searching based on a filename
# IMDB_REMOVE_FROM_SEARCHSTRING = ()
# format of the season/episode in the tv series title
# IMDB_SEASON_EPISODE_FORMAT = "[%01dx%02d]"
# IMDB_SEASON_EPISODE_FORMAT = "%01dx%02d"
# IMDB_SEASON_EPISODE_FORMAT = "S%02dE%02d"
# When searching for a movie title in imdb, should the result be
# autoaccepted if it is only one hit?
# 0 = show menu even if it is only one hit (gives you an opportunity to cancel)
# 1 = autoaccept
# IMDB_AUTOACCEPT_SINGLE_HIT = True
# Use the local file lenght or runtime value from IMDB?
# IMDB_USE_IMDB_RUNTIME = False
# ======================================================================
# Freevo Subtitles plugin:
# ======================================================================
# add subtitle search to the video item menu
# plugin.activate('video.subtitles')
# plugin.activate('video.subtitles.napiprojekt')
# plugin.activate('video.subtitles.opensubtitles')
# SUBS_LANGS = { 'eng': ('English'), }
# ======================================================================
# Freevo directory settings:
# ======================================================================
# You can change all this variables in the folder.fxd on a per folder
# basis
#
# Example:
# <freevo>
# <folder title="Title of the directory" img-cover="nice-cover.png">
# <setvar name="directory_autoplay_single_item" val="0"/>
# <info>
# <content>A small description of the directory</content>
# </info>
# </folder>
# </freevo>
#
# Should directories sorted by date instead of filename?
# 0 = No, always sort by filename.
# 1 = Yes, sort by date
# 2 = No, don't sory by date for normal directories,
# but sort by date for TV_RECORD_DIR.
#
# DIRECTORY_SORT_BY_DATE = 2
#
# Should directory items be sorted in reverse order?
#
# DIRECTORY_REVERSE_SORT = 0
#
# Should we use "smart" sorting?
# Smart sorting ignores the word "The" in item names.
#
# DIRECTORY_SMART_SORT = 0
#
# Should files in directories have smart names?
# This removes the first part of the names when identical
#
# DIRECTORY_SMART_NAMES = 1
#
# Should Freevo autoplay an item if only one item is in the directory?
#
# DIRECTORY_AUTOPLAY_SINGLE_ITEM = 1
#
# Force the skin to use a specific layout number. -1 == no force. The layout
# toggle with DISPLAY will be disabled
#
# DIRECTORY_FORCE_SKIN_LAYOUT = -1
#
# Format string for the audio item names.
#
# Possible strings:
# a=artist, n=tracknumber, t=title, y=year, f=filename
#
# Example:
# This will show the title and the track number:
# DIRECTORY_AUDIO_FORMAT_STRING = '%(n)s - %(t)s'
#
# DIRECTORY_AUDIO_FORMAT_STRING = '%(t)s'
#
# Use media id tags to generate the name of the item. This should be
# enabled all the time. It should only be disabled for directories with
# broken tags.
#
# DIRECTORY_USE_MEDIAID_TAG_NAMES = 1
#
# The following settings determine which features are available for
# which media types.
#
# If you set this variable in a folder.fxd, the value is 1 (enabled)
# or 0 (disabled).
#
# Examples:
# To enable autoplay for audio and image files:
# DIRECTORY_AUTOPLAY_ITEMS = [ 'audio', 'image' ]
# To disable autoplay entirely:
# DIRECTORY_AUTOPLAY_ITEMS = []
# Make all items a playlist. So when one is finished, the next one will
# start. It's also possible to browse through the list with UP and DOWN
#
# DIRECTORY_CREATE_PLAYLIST = [ 'audio', 'image' ]
# Add playlist files ('m3u') to the directory
#
# DIRECTORY_ADD_PLAYLIST_FILES = [ 'audio', 'image' ]
# Add the item 'Random Playlist' to the directory
#
# DIRECTORY_ADD_RANDOM_PLAYLIST = [ 'audio' ]
# Make 'Play' not 'Browse' the default action when only items and not
# subdirectories are in the directory
#
# DIRECTORY_AUTOPLAY_ITEMS = [ ]
# ----------------------------------------------------------------------
# Archive plugin
# ----------------------------------------------------------------------
# It's enabled by default
# plugin.activate('archive')
#
# To remove it uncomment following line
# plugin.remove('archive')
# ======================================================================
# Freevo movie settings:
# ======================================================================
#
# Where the movie files can be found.
# This is a list of items (e.g. directories, fxd files). The items themselves
# can also be a list of (title, file)
#
# VIDEO_ITEMS = [
# ('action movies', '/freevo/movies/action'),
# ('funny stuff', '/freevo/movies/comedy'),
# ]
#
# Some people access movies on a different machine using an automounter.
# To avoid timeouts, you can specify the machine name in the directory
# to check if the machine is alive first
# Directory myserver:/files/server-stuff will show the item for the
# directory /files/server-stuff if the computer myserver is alive.
#
# The list of filename suffixes that are used to match the files that
# are played wih MPlayer.
#
# VIDEO_MPLAYER_SUFFIX = [
# 'avi', 'mpg', 'mpeg', 'wmv', 'bin', 'rm', 'divx', 'ogm', 'vob', 'asf',
# 'm2v', 'm2p', 'mp4', 'viv', 'nuv', 'mov', 'iso', 'nsv', 'mkv', 'ogg',
# 'ts', 'flv',
# ]
#
# The list of filename suffixes that are used to match the files that
# are played wih Xine.
#
# VIDEO_XINE_SUFFIX = [
# 'avi', 'mpg', 'mpeg', 'rm', 'divx', 'ogm', 'asf', 'm2v', 'm2p', 'mp4',
# 'mov', 'cue', 'ts', 'iso', 'vob',
# ]
#
# Preferred video player
#
# VIDEO_PREFERED_PLAYER = 'mplayer'
#
# Only scan OVERLAY_DIR and VIDEO_SHOW_DATA_DIR for fxd files containing
# information about a disc. If you only have the fxd files for discs in
# one of this directories (and subdirectories), set this to 1, it will
# speed up startup, 0 may be needed if you have fxd files with disc links
# in your normal movie tree.
#
# VIDEO_ONLY_SCAN_DATADIR = 1
#
# try to detect a movie with more than one file and join them as one
# item
#
# VIDEO_AUTOJOIN = 1
#
# join files based on the regular expression
# seaches for 1, 01, 001, etc before a '.'; possibly too simple
#
# VIDEO_AUTOJOIN_REGEX='(0*1)\.'
#
# try to find out if deinterlacing is needed or not
#
# VIDEO_DEINTERLACE = None
#
# Instruct player to use XVMC for playback
#
# VIDEO_USE_XVMC = None
#
# Pass field dominance parameter to MPlayer
#
# VIDEO_FIELD_DOMINANCE = None
# PRE and POST playing commands. Set these to a runnable command if
# you wish to do something before and after playing a video, like
# dimming the lights
# VIDEO_PRE_PLAY = None
# VIDEO_POST_PLAY = None
# ======================================================================
# Freevo audio settings:
# ======================================================================
#
# Where the Audio (mp3, ogg) files can be found.
# This is a list of items (e.g. directories, fxd files). The items themselves
# can also be a list of (title, file)
#
# To add webradio support, add fxd/webradio.fxd to this list
#
# AUDIO_ITEMS = [
# ('Music Collection', '/freevo/audio/mp3'),
# 'fxd/webradio.fxd',
# ]
#
# The list of filename suffixes that are used to match the files that
# are played as audio.
#
# AUDIO_SUFFIX = [
# 'mp3', 'ogg', 'wav', 'm4a', 'wma', 'aac', 'flac', 'mka', 'ac3',
# ]
#
# Regular expression used to recognize filenames which are likely to be
# covers for an album
#
# This will match front.jpg and cover-f.jpg, but not back.jpg nor cover-b.jpg:
# AUDIO_COVER_REGEXP = 'front|-f'
#
# Format strings used to seach for audio cover images.
# Fist matching GIF, JPG or PNG image will be used as cover.
#
# Examples:
# AUDIO_COVER_FORMAT_STRINGS = [ 'cover-%(artist)s-%(album)s', 'mycover' ]
# AUDIO_COVER_FORMAT_STRINGS = [ '%(album)s', '../covers/%(album)s', '../covers/nocover' ]
#
#
# Preferred audio player
#
# AUDIO_PREFERED_PLAYER = 'mplayer'
#
# Show video files in the audio menu (for music-videos)
#
# AUDIO_SHOW_VIDEOFILES = False
# ======================================================================
# Freevo image viewer settings:
# ======================================================================
#
# Where image files can be found.
# This is a list of items (e.g. directories, fxd files). The items itself
# can also be a list of (title, file)
#
# IMAGE_ITEMS = [
# ('My Photos', '/freevo/images'),
# ]
#
# The list of filename suffixes that are used to match the files that
# are used for the image viewer.
#
# IMAGE_SUFFIX = [ 'jpg','gif','png','jpeg','bmp','tiff','psd' ]
#
# The viewer now supports a new type of menu entry, a slideshow file.
# It also has the slideshow alarm signal handler for automated shows.
# It uses a new configuration option:
#
# IMAGE_SSHOW_SUFFIX = [ 'ssr' ]
# The viewer can exclude certain types of images based on the regular expression list
# eg IMAGE_EXCLUDE = [('thm','tn_')]
# IMAGE_EXCLUDE = None
#
# Mode of the blending effect in the image viewer between two images
# Possible values are:
#
# None: no blending
# -1 random effect
# 0 alpha blending
# 1 wipe effect
# IMAGEVIEWER_BLEND_MODE = -1
#
# Duration to wait in the slideshow:
#
# IMAGEVIEWER_DURATION = 3
#
# If set to False, the slideshow must be started
# manualy with the play button:
#
# IMAGEVIEWER_AUTOPLAY = True
#
# When viewing images on a TV screen where the pixels are not square
# the images need to be scaled according to the aspect ratio of the TV
# Use this setting for 16x9 TVs
# IMAGEVIEWER_ASPECT = (float(1024) / float(720))
# Use this setting for 4x3 TVs
# IMAGEVIEWER_ASPECT = (float(768) / float(720))
# Use this setting for Monitors including HDTVs
# IMAGEVIEWER_ASPECT = 1.0
#
# IMAGEVIEWER_ASPECT = 1.0
#
# Set this to true if the zoom level (factor) of the currently watched image
# will be applied the the next loaded image; Default is True
# IMAGEVIEWER_KEEP_ZOOM_LEVEL = True
#
# Set this to true if you want to keep the same position as the currently
# watched image, will be applied the the next loaded image; Default is False
# i.e. the image will be open and zoomed in (if IMAGEVIEWER_KEEP_ZOOM_LEVEL
# is set) to the same exact position. Default is False, which means the next
# image will be renedered in the top left corner.
# IMAGEVIEWER_KEEP_ZOOM_POSITION = False
# ======================================================================
# Freevo games settings:
# ======================================================================
#
# MAME is an emulator for old arcade video games. It supports almost
# 2000 different games! The actual emulator is not included in Freevo,
# you'll need to download and install it separately. The main MAME
# website is at http://www.mame.net, but the version that is used here
# is at http://x.mame.net since the regular MAME is for Windows.
#
# SNES stands for Super Nintendo Entertainment System. Freevo relies
# on other programs that are not included in Freevo to play these games.
#
# NEW GAMES SYSTEM :
# =================
# The GAMES_ITEMS structure is now build as follows :
# <NAME>, <FOLDER>, (<TYPE>, <COMMAND_PATH>, <COMMAND_ARGS>, <IMAGE_PATH>, \
# [<FILE_SUFFIX_FOR_GENERIC>])
# where :
# - <TYPE> : Internal game types (MAME or SNES) or
# generic one (GENERIC)
# - <COMMAND_PATH> : Emulator command
# - <COMMAND_ARGS> : Arguments for the emulator
# - <IMAGE_PATH> : Optionnal path to the picture
# - <FILE_SUFFIX_FOR_GENERIC> : If the folder use the GENERIC
# type, then you must specify here
# the file suffix used by the emulator
# GAMES_ITEMS = [
# ('MAME', '/home/media/games/xmame/roms',
# ('MAME', '/usr/local/bin/xmame.SDL', '-fullscreen -modenumber 6',
# '/home/media/games/xmame/shots', None)),
# ('SUPER NINTENDO', '/home/media/games/snes/roms',
# ('SNES', '/usr/local/bin/zsnes', '-m -r 3 -k 100 -cs -u', '', None )),
# ('Visual Boy Advance', '/home/media/games/vba/roms/',
# ('GENERIC', '/usr/local/vba/VisualBoyAdvance', ' ', '', [ 'gba' ] )),
# ('MEGADRIVE', '/home/media/games/megadrive/roms',
# ('GENESIS', '/usr/local/bin/generator-svgalib', '', '', '' ))
# ]
#
# GAMES_ITEMS = None
#
# These settings are used for the MAME arcade emulator:
#
# Priority of the game process
# 0 = Don't change the priority
# >0 - Lower priority
# <0 - Higher priority
#
# GAMES_NICE = -20
#
# MAME cache directory
#
# GAMES_MAME_CACHE = '%s/romlist-%s.pickled' % (FREEVO_CACHEDIR, os.getuid())
# ======================================================================
# Freevo SKIN settings:
# ======================================================================
#
# XML file for the skin. If SKIN_XML_FILE is set, this skin will be
# used, otherwise the skin will rememeber the last choosen skin.
#
# SKIN_XML_FILE = 'blurr'
#
#
# Select a way when to switch to text view even if a image menu is there
#
# 1 = Force text view when all items have the same image and there are no
# directories
# 2 = Ignore the directories, always switch to text view when all images
# are the same
#
# SKIN_FORCE_TEXTVIEW_STYLE = 1
#
# Force text view for the media menu
# (The media menu is the first menu displayed for video, audio, images
# and games).
#
# SKIN_MEDIAMENU_FORCE_TEXTVIEW = 0
# ======================================================================
# Freevo OSD settings:
# ======================================================================
#
# System Path to search for fonts not included in the Freevo distribution
#
# OSD_EXTRA_FONT_PATH = [ '/usr/share/fonts/truetype' ]
#
# Font aliases
# All names must be lowercase! All alternate fonts must be in './share/fonts/'
#
# OSD_FONT_ALIASES = { 'arial_bold.ttf' : 'DejaVuSans-Bold.ttf' }
# For non-european character sets the OSD_FORCE_FONTNAME and
# OSD_FORCE_FONTSIZE can be set. The size is a scaling ratio, ie 1.2.
# Setting OSD_FORCE_FONTNAME='batang.ttf' and OSD_FORCE_FONTSIZE=1.0
# allows Korean characters.
# OSD_FORCE_FONTNAME = None
# OSD_FORCE_FONTSIZE = None
#
# Number of seconds to wait until the busy icon is shown in the menu.
# Busy icon can also be shown right away when there is more than a certain
# number of files in a directory.
#
# Set this to None to disable this.
# (seconds, files)
#
# OSD_BUSYICON_TIMER = (0.7, 200)
#
# Number of pixels to move the display to centre the OSD on the display
#
# OSD_OVERSCAN_LEFT = OSD_OVERSCAN_RIGHT = 0
# OSD_OVERSCAN_TOP = OSD_OVERSCAN_BOTTOM = 0
#
# Setting the cursors when freevo is run in fullscreen mode
#
# OSD_X11_CURSORS = '/usr/lib/X11/cursors/black.cursor /usr/lib/X11/cursors/blank.cursor'
#
# Execute a script on OSD startup.
#
# OSD_SDL_EXEC_AFTER_STARTUP = ""
#
# Execute a script on OSD close.
#
# OSD_SDL_EXEC_AFTER_CLOSE = ""
#
# Stop the osd before playing a movie with xine or mplayer. Some output
# devices need this. After playback, the osd will be restored
#
# OSD_STOP_WHEN_PLAYING = 0
#
# Dim text that doesn't fit instead of using ellipses.
# OSD_DIM_TEXT = 1
#
# OSD sound effects
#
# OSD_SOUNDS_ENABLED=False
# OSD_SOUNDS= {
# 'menu.navigate': None,
# 'menu.back_one': None,
# 'menu.select' : None
# }
#
# Padding between icons
#
# OSD_IDLEBAR_PADDING = 20
# OSD_IDLEBAR_FONT = 'small0'
# OSD_IDLEBAR_CLOCK_FONT = 'clock'
# ======================================================================
# Freevo remote control settings:
# ======================================================================
#