Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book references do not work for mobile. #5

Open
jiachen247 opened this issue Sep 1, 2016 · 0 comments
Open

Book references do not work for mobile. #5

jiachen247 opened this issue Sep 1, 2016 · 0 comments

Comments

@jiachen247
Copy link

Dont know if anyone is still maintaining this repo HAHA but here goes

When the youversion app hijacks the web request via intents, the link does not work.
The shorter versions of the books have to be used instead. I rewrote them for a project I'm writing in python, (tested to be working in andriod)

Hope it helps.

book_lookup = {
                'Genesis': 'gen',
                'Exodus': 'exo',
                'lev': 'Lev',
                'num': 'Num',
                'Deuteronomy': 'deu',
                'Joshua': 'jos',
                'Judges': 'jdg',
                'Ruth': 'rut',
                '1 Samuel': '1sa',
                '2 Samuel': '2sa',
                '1 Kings': '1ki',
                '2 Kings': '2ki',
                '1 Chronicles': '1ch',
                '2 Chronicles': '2ch',
                'Ezra': 'ezr',
                'Nehemiah': 'neh',
                'Esther': 'est',
                'Job': 'job',
                'Psalms': 'psa',
                'Proverbs': 'pro',
                'Ecclesiastes': 'ecc',
                'Song of Solomon': 'sng',
                'Isaiah': 'isa',
                'Jeremiah': 'jer',
                'Lamentations': 'lam',
                'Ezekiel': 'ezk',
                'Daniel': 'dan',
                'Hosea': 'hos',
                'Joel': 'jol',
                'Amos': 'amo',
                'Obadiah': 'oba',
                'Jonah': 'jon',
                'Micah': 'mic',
                'Nahum': 'nam',
                'Habakkuk': 'hab',
                'Zephaniah': 'zep',
                'Haggai': 'hag',
                'Zechariah': 'zec',
                'Malachi': 'mal',
                'Matthew': 'mat',
                'Mark': 'mrk',
                'Luke': 'luk',
                'John': 'jhn',
                'Acts': 'act',
                'Romans': 'rom',
                '1 Corinthians': '1co',
                '2 Corinthians': '2co',
                'Galatians': 'gal',
                'Ephesians': 'eph',
                'Philippians': 'php',
                'Colossians': 'col',
                '1 Thessalonians': '1th',
                '2 Thessalonians': '2th',
                '1 Timothy': '1ti',
                '2 Timothy': '2ti',
                'Titus': 'tit',
                'Philemon': 'phm',
                'Hebrews': 'heb',
                'James': 'jas',
                '1 Peter': '1pe',
                '2 Peter': '2pe',
                '1 John': '1jn.',
                '2 John': '2jn.',
                '3 John': '3jn.',
                'Jude': 'jud',
                'Revelation': 'rev'
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant