Giter Site home page Giter Site logo

saulotarsobc / jw-sing-language-merge Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 60.9 MB

Merge two JW Sign Language backup files

Home Page: https://github.com/saulotarsobc/jw-sing-language-merge/wiki

Shell 0.30% Python 95.35% TypeScript 4.35%
jwlibrary backup merge playlistys datbase jwpub nodejs python sqlite

jw-sing-language-merge's Introduction

JW Sign Language merge bkp files

image

Help

Python

Use in python

git clone https://github.com/saulotarsobc/jw-sing-language-merge.git
cd jw-sing-language-merge/py
python3 -m venv .venv

source .venv/Scripts/activate # windows
# .venv
pip install -r requirements.txt # to pip update -> 'python.exe -m pip install --upgrade pip'
# .venv
python src/main.py;

Tables

  • ✅ Location
  • ✅ Tag
  • ✅ TagMap
  • ✅ Note
  • ✅ Bookmark
  • ✅ UserMark
  • ✅ BlockRange
  • ✅ InputField
  • 🟥 LastModified
  • ✅ IndependentMedia
  • ✅ PlaylistItem
  • ✅ PlaylistItemAccuracy
  • ✅ PlaylistItemIndependentMediaMap
  • ✅ PlaylistItemLocationMap
  • ✅ PlaylistItemMarker
  • ✅ PlaylistItemMarkerParagraphMap
  • ✅ PlaylistItemMarkerBibleVerseMap

jw-sing-language-merge's People

Contributors

saulotarsobc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

jw-sing-language-merge's Issues

Bug

>> Copiando dados da base-1 para a nova base
>> Copiando dados da base-2 para a nova base
Traceback (most recent call last):
  File "C:\Users\saulo\OneDrive\Documentos\Github\libras\jw-sing-language-merge\py\src\main.py", line 843, in <module>
    getDataFromDb2()
  File "C:\Users\saulo\OneDrive\Documentos\Github\libras\jw-sing-language-merge\py\src\main.py", line 746, in getDataFromDb2
    cur3.execute("INSERT INTO PlaylistItem VALUES(?,?,?,?,?,?,?)", (nextId, r[1], r[2], r[3], r[4], r[5], r[6]))
sqlite3

Possibility to pass the path of .jwlibrary files via 'arg'

import sys

# Obter argumentos da linha de comando
argumentos = sys.argv

# O primeiro argumento (argumentos[0]) é o nome do script
# Os argumentos subsequentes são os parâmetros fornecidos
print("Argumentos:", argumentos)

# Acessar argumentos individuais
if len(argumentos) > 1:
    parametro1 = argumentos[1]
    parametro2 = argumentos[2]
    print("Parâmetro 1:", parametro1)
    print("Parâmetro 2:", parametro2)
else:
    print("Nenhum parâmetro fornecido.")

UNIQUE constraint failed: Location.KeySymbol, Location.IssueTagNumber, Location.MepsLanguage, Location.DocumentId, Location.Track, Location.Type

Traceback (most recent call last):
  File "C:\Users\saulo\OneDrive\Documentos\Github\libras\jw-sing-language-merge\py\src\main.py", line 932, in <module>
    getDataFromDb2()
  File "C:\Users\saulo\OneDrive\Documentos\Github\libras\jw-sing-language-merge\py\src\main.py", line 771, in getDataFromDb2
    cur3.execute("INSERT INTO Location VALUES(?,?,?,?,?,?,?,?,?,?)", (nextId, r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9]))
sqlite3.IntegrityError: UNIQUE constraint failed: Location.KeySymbol, Location.IssueTagNumber, Location.MepsLanguage, Location.DocumentId, Location.Track, Location.Type 

The error sqlite3.IntegrityError: UNIQUE constraint failed: Location.KeySymbol, Location.IssueTagNumber, Location.MepsLanguage, Location.DocumentId, Location.Track, Location.Type indicates that there has been a violation of the unique key constraint on the Location table. This means that an insertion is being attempted that violates the uniqueness condition defined for the mentioned columns.

Add the possibility to customize the default thumbnail

from PIL import Image

# Dimensões da nova imagem
largura = 200
altura = 100

# Cor de preenchimento da imagem (no formato RGB)
cor = (255, 0, 0)  # Vermelho

# Criar uma nova imagem com a cor especificada
nova_imagem = Image.new('RGB', (largura, altura), cor)

# Salvar a nova imagem como um arquivo PNG
nova_imagem.save('nova_imagem.png')

Bug in Location table

>> Copiando dados da base-1 para a nova base
>> Copiando dados da base-2 para a nova base
Traceback (most recent call last):
  File "C:\Users\saulo\OneDrive\Documentos\Github\libras\jw-sing-language-merge\py\src\main.py", line 849, in <module>
    getDataFromDb2()
  File "C:\Users\saulo\OneDrive\Documentos\Github\libras\jw-sing-language-merge\py\src\main.py", line 695, in getDataFromDb2
    cur3.execute("INSERT INTO Location VALUES(?,?,?,?,?,?,?,?,?,?)", (nextId, r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9]))
sqlite3.IntegrityError: UNIQUE constraint failed: Location.BookNumber, Location.ChapterNumber, Location.KeySymbol, Location.MepsLanguage, Location.Type

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.