To use the QEventFileLogger()
in your application:
- Include the following definition in the object that you want to log:
def eventFilter(self, object, event):
"""Process selected events.
"""
""" | |
Python script used to create the initial (empty) SQLite database | |
file if required for the music database, and populate the database | |
from the file generated by the ReleaseLogger plugin for Picard. | |
Once processed, the source ReleaseLogger data file is appended to | |
a backup file, and the source file reset to an empty file. | |
Copyright © 2017, Bob Swift. Released under GPL-2.0 or later. | |
""" |
$noop( | |
********************************************************************************** | |
Example Picard script to handle genres. | |
This script assumes that the genres list is in a normal non multi-value tag | |
called 'genre', which is provided by Picard if the "Use genres" option is | |
enabled. This script will produce a new non multi-value variable called | |
'_genres', which can be converted to a multi-value using the $setmulti | |
function if required. |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (C) 2021-2022 Bob Swift | |
# | |
# 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. | |
# |
The following describes the user account structure used for a sports pool site supporting pools in a number of different sports leagues. This is intended to provide a possible starting point or generate alternative ideas for developing a user account structure for other projects. Note that all sensitive information should be securely stored in an encrypted format.
The basis for the structure developed for the sports pool site was:
To remove some tags from the files but still have the values available to use in the file naming script, you may first need to save them to temporary variables in a tagging script such as:
$noop( Create temporary variables )
$set(_temp_albumartist,%albumartist%)
$set(_temp_discnumber,%discnumber%)
$set(_temp_totaldiscs,%totaldiscs%)
$set(_temp_compilation,%compilation%)
$noop( Remove unwanted tags )