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

Added "https://porngifs.xxx/" since "https://www.sex.com/gifs/" gifs doesn't work #37

Open
iced-queen opened this issue Sep 1, 2023 · 0 comments

Comments

@iced-queen
Copy link

Modules.js

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _Sex = require('../modules/Sex');

var _Sex2 = _interopRequireDefault(_Sex);

var _Porngifs = require('../modules/Porngifs');

var _Porngifs2 = _interopRequireDefault(_Porngifs);

var _Pornhub = require('../modules/Pornhub');

var _Pornhub2 = _interopRequireDefault(_Pornhub);

var _Redtube = require('../modules/Redtube');

var _Redtube2 = _interopRequireDefault(_Redtube);

var _Xvideos = require('../modules/Xvideos');

var _Xvideos2 = _interopRequireDefault(_Xvideos);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
  sex: _Sex2.default,
  porngifs: _Porngifs2.default,
  pornhub: _Pornhub2.default,
  redtube: _Redtube2.default,
  xvideos: _Xvideos2.default
};
module.exports = exports['default'];

Add Porngifs.js to the "modules" folder.

'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});

var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');

var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _GifMixin = require('../core/GifMixin');

var _GifMixin2 = _interopRequireDefault(_GifMixin);

var _VideoMixin = require('../core/VideoMixin');

var _VideoMixin2 = _interopRequireDefault(_VideoMixin);

var _AbstractModule = require('../core/AbstractModule');

var _AbstractModule2 = _interopRequireDefault(_AbstractModule);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Porngifs = function (_AbstractModule$with) {
    (0, _inherits3.default)(Porngifs, _AbstractModule$with);

    function Porngifs() {
        (0, _classCallCheck3.default)(this, Porngifs);
        return (0, _possibleConstructorReturn3.default)(this, (Porngifs.__proto__ || (0, _getPrototypeOf2.default)(Porngifs)).apply(this, arguments));
    }

    (0, _createClass3.default)(Porngifs, [{
        key: 'gifUrl',
        value: function gifUrl(page) {
            return 'https://porngifs.xxx/page' + (page || this.firstpage + '/' + '?s=' + this.query);
        }
    }, {
        key: 'gifParser',
        value: function gifParser($) {
            var gifs = $('#masonry_container .masonry_box').not('.ad_box');

            return gifs.map(function (i, gif) {
                var data = $(gif).find('a.image_wrapper');
                var title = data.attr('title');
                var url = data.find('img').data('gif');

                if (!title || !url) {
                    return;
                }

                return {
                    title: title,
                    url: url
                };
            }).get();
        }
    }, {
        key: 'name',
        get: function get() {
            return 'Porngifs';
        }
    }, {
        key: 'firstpage',
        get: function get() {
            return 1;
        }
    }]);
    return Porngifs;
}(_AbstractModule2.default.with(_GifMixin2.default, _VideoMixin2.default));

exports.default = Porngifs;
module.exports = exports['default'];

Driver will be called porngifs

@iced-queen iced-queen changed the title Added "https://porngifs.xxx/" Added "https://porngifs.xxx/" since "https://www.sex.com/gifs/" gifs doesn't work Sep 1, 2023
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